Click to See Complete Forum and Search --> : on mouse up check browser if then


beebumble
11-25-2003, 09:47 PM
i need code that does this:

on mouse up check browser. if internet explorer, open example.html in new window with dimentions 100 by 200. if netscape navigator, open example.html in a new window with dimentions 300 by 400.

please help me:confused:

fredmv
11-25-2003, 10:09 PM
<a href="#" onmouseup="d=(typeof(document.all)!='undefined'&&typeof(window.opera)=='undefined')? 'height=100,width=200':'height=300,width=400';window.open('example.html','','scrollbars=1,'+d);retur n false;">foo</a>

NOTE: Make sure it's all on one line.