spider_designs 0 Posted March 13, 2006 Report 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 Quote Link to post Share on other sites
aspnetguy 30 Posted March 13, 2006 Report Share Posted March 13, 2006 winTH.className = "ThisClass" Good luck Quote Link to post Share on other sites
spider_designs 0 Posted March 13, 2006 Author Report 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 Quote Link to post Share on other sites
aspnetguy 30 Posted March 13, 2006 Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.