Mozilla 0.9.5:
No function at all.
Netscape 6.1:
No function at all.
Netscape 4.51:
No function at all.
Opera 6.0:
Works fine.
To make it work in Mozilla-based browsers:
Change:
if (Res.sel.selectedIndex == 0){
To:
if (document.Res.sel.selectedIndex == 0){
And you'll get it to partially work. The next problem is your use of multiple values for your select box. While you can use them in Mozilla, you can't the way you're trying to. You need to change:
w = document.Res.sel.options[document.Res.sel.selectedIndex].w
h = document.Res.sel.options[document.Res.sel.selectedIndex].h
To:
whArray=document.Res.sel.options[document.Res.sel.selectedIndex].text.split("x");
w = whArray[0];
h = whArray[1];
Now it gets the correct widths and heights, but all the windows are opened maximized since you've put spaces between your window attributes. Remove those and the script will work fine. In other words, change:
window.open ( val, '', config='height='+h+', width='+w+', toolbar='+tb+', menubar='+mb+', scrollbars='+sb+', resizable='+r+',location='+lb+', directories=0, fullscreen='+fs+' status='+st);
To:
window.open ( val, '', config='height='+h+',width='+w+',toolbar='+tb+',menubar='+mb+',scrollbars='+sb+',resizable='+r+',location='+lb+',directories=0,fullscreen='+fs+',status='+st);
Now you're all set.