Click to See Complete Forum and Search --> : Geting crasy with ie,ns, pop up win???


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 :)

Charles
05-01-2003, 05:01 AM
<a href="http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731" onclick="window.open(this.href, 'child', 'height=400,width=300'); return false">http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731</a>

Asch
05-02-2003, 02:09 AM
thx lol. so simple duhhhhhhh........


enjoy

asch
:D

Asch
05-02-2003, 02:55 AM
Heum sorry it stil doesnt work lol :O)

so in a blank html page wher i put this code it works fine with both browser, but when I put it in my page it bugs in NS...the second link doesnt work...IT CANT BE duhhhh wfk.....crasy

<table>
<td> < a href>xxxx.html</a> • <a href onclik=.....>yyyyy.html</a> </td>
<td>stuff</td>
<td>stuff</td>
</table>

thx for your help

asch

:D