Excellent. Thanks for the replies.
On Tuesday, November 20, 2012 3:07:44 AM UTC-7, Victor wrote: > > Get head element in pure JS: > var head = document.head || document.getElementsByTagName("head")[0]; > > Get first style element in pure JS: > var style = document.getElementsByTagName("style")[0]; > > Get first style element in Prototype JS: > var style = $$("style").first(); > > Modification of text in existing style element IMHO may be different in IE > and W3C-compliant browsers - IE can modify content of style via property > style.styleSheet.cssText, W3C browsers via DOM style.childNodes[0] or > property style.innerText. > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To view this discussion on the web visit https://groups.google.com/d/msg/prototype-scriptaculous/-/fPSf-7xkKN0J. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.