PDA

View Full Version : Netscape Problems


mfrail
11-03-2003, 01:34 AM
Ok here is my function

function showpage(url) {

if (url == "")
return false;
window.open(url, "Team_Page", "height=340,width=600,directories=no,location=no,menubar=no," +
"resizeable=no,status=no,toolbar=no");

}

I call it like so ...

<select name="BCSL_North" onChange ="return showpage(BCSL_North.options.value);">
<option value ="" SELECTED>BCSL North</option>
<option value="michigan.html">Michigan</option>
<option value="under.html">Team</option>
<option value="under.html">Team</option>
<option value="under.html">Team</option>
<option value="under.html">Team</option>
<option value="under.html">Team</option>
<option value="under.html">Team</option>
<option value="under.html">Team</option>
</select>


Works perfectly in IE but does nothing in Netscape.

Can anyone help?

piglet
11-03-2003, 07:31 AM
Hi,

The reason is because IE allows sloppy coding.

the correct syntax is:


<select name="BCSL_North" onchange ="return showpage(this.options[this.selectedIndex].value);">