spider_designs Posted March 13, 2006 Share Posted March 13, 2006 Ok ... I have been learning dhtml (js/html/css) for the past few days and what Im trying to do is create a layer that can be added to the page after it has been loaded (Currently I am only working with internet explorer)I had intended to use the <tag class="thisclass"> to format the style and <tag id="thisid"> to keep track of it through js var winTH = document.createElement('div');winTH.id = "win_T_Holder" + dynWinCount;//winTH.class = "ThisClass" -- returns error even although -//<div id="win_T_Holder0" class="thisClass"> is validhtml (forgive me if its not :-) ) so I guess my question is :- Is there any way to set class="thisClass" through javascript??btw this is my first post ever Go Easy;)Spider Link to comment Share on other sites More sharing options...
aspnetguy Posted March 13, 2006 Share Posted March 13, 2006 winTH.className = "ThisClass" Good luck Link to comment Share on other sites More sharing options...
spider_designs Posted March 13, 2006 Author Share Posted March 13, 2006 I can't thank you enough .. I have checked every where and could find find what I was looking for ...thanks again aspnetguyspider Link to comment Share on other sites More sharing options...
aspnetguy Posted March 13, 2006 Share Posted March 13, 2006 Your welcome.You will run into that sometimes when dealing with tag attributes and CSS properties.Feel free to ask if you run into anymore troubles. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now