Jump to content

CSS file using Dom


sugan

Recommended Posts

Hi,I want to access the class elements written inside the css files using the DOM. I know how to access the form elements dynamically using DOM but don't know about the contents of the css files. Actually can i do this? If yes then how?Regards,Sugan

Link to comment
Share on other sites

I don't think this is possible as it is not part of the document. If you had the CSS in <style></style> in the head then you could get the style element and parse the innerHTML but I doubt there is a way to do that with an external file.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...