Asch
05-01-2003, 04:03 AM
Hi, i m trying since a while to make a script that pop ups a win in explorer and netscape I ve tried tons of stuff doesnt work...please help...
i v made in 2 ways but no one works in netscape...
-----------------------
function openpopup1(mypage, myname, w, h) {
var winl = 178;
var wint = 110;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
-------------------------
onclick="openpopup1(this.href,'name','220','220','yes');return false;"
------------------------------------------------------------------
NUMBER 2 a bit lighter (returns value)
----------------------------------------------------------------
function openpopup2(){
var popurl="credits.html"
winpops=window.open(popurl,"","width=220,height=220,top=178,left=110")
}
-----------------
href="javascript:openpopup2()"
----------------------------------------------------------------
hope you can help me to get it compatible thx
asch
:D :D :D :)
i v made in 2 ways but no one works in netscape...
-----------------------
function openpopup1(mypage, myname, w, h) {
var winl = 178;
var wint = 110;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
-------------------------
onclick="openpopup1(this.href,'name','220','220','yes');return false;"
------------------------------------------------------------------
NUMBER 2 a bit lighter (returns value)
----------------------------------------------------------------
function openpopup2(){
var popurl="credits.html"
winpops=window.open(popurl,"","width=220,height=220,top=178,left=110")
}
-----------------
href="javascript:openpopup2()"
----------------------------------------------------------------
hope you can help me to get it compatible thx
asch
:D :D :D :)