aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes document.styleSheets[0].Rules Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "document.styleSheets[0].Rules" Watch "document.styleSheets[0].Rules" New topic
Author

document.styleSheets[0].Rules

Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1121
Good Day,

I have the following function -



What's the difference between document.styleSheets[0].rules and document.styleSheets[0].cssRules ?

Regards,
Dan
[ January 23, 2008: Message edited by: Dan Drillich ]

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
Firefox and IE use different implementations.

Eric
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1121
Thank you Eric!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: document.styleSheets[0].Rules
 
Similar Threads
slow for loops inside javascript..
Javascript menu problem
change CSS rules dynamic with JavaScript
Can javascript modify CSS classes?
document.styleSheets[0].cssRules is null