[Javascript] help needed badly

Peter-Paul Koch pp.koch at gmail.com
Mon Dec 20 06:10:35 CST 2004


> What am I dong wrong? This script works in Firefox 1.0, but IE (6.0 SP2)
> crashes!!!
> 
> var objSlike = opener.document.forms[0].slike;
> objSlike.options[0] = new Option('bla','bla');

Generating options in another frame or window doesn't work too well in
Explorer, whichever method you use.

Solution: put the script that creates the new option in the frame or
window the option should appear in, and call it cross-window.

-------------------------------------------------------------------
ppk, freelance web developer

Bug Report: Report bugs yourself, or comment on previously 
reported ones.
http://www.quirksmode.org/bugreports/
------------------------------------------------------------------



More information about the Javascript mailing list