faqts : Computers : Programming : Languages : JavaScript : DHTML : DOM

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 2 people (0%) answered Yes
Recently 0 of 2 people (0%) answered Yes

Entry

How can I create a new style using JavaScript, without crashing the browser?

Nov 6th, 2002 15:56
Mark Filipak,


Using createDocumentFragment(), createElement('STYLE'), and
document.getElementsByTagName('HEAD').item(0).appendChild(myNewStyle),
how can I create a new style without crashing the browser? I appear to
succeed, but as soon as I try to use myNewStyle, NN6 crashes. Could
there be a binding problem?