Forum Moderators: open

Message Too Old, No Replies

window.open(): incorrect height in firefox

how to fix it?

         

sebbothebutcher

7:10 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



hi!
i have a script file which looks like this:

function winOpen(source)
{
window.open(source,"newWin","width=470,heigth=340")
}

but when i try to call this script, with a link looking like this:

<a href='javascript:winOpen("01.php")'>link</a>

the opening windows has a height of maybe 40 pixels instead of 340... in IE it looks okay, but in firefox it doesn't... any suggestions how to make firefox display it correctly?

choster

7:17 pm on Jun 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this a typo?

window.open(source,"newWin","width=470,heigth=340")

sebbothebutcher

7:37 pm on Jun 21, 2004 (gmt 0)

10+ Year Member



ooops!
such a fool's mistake... ;-)
okay i fixed it now it works... my english teacher would kill me... :-)

choster

8:01 pm on Jun 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No worries. We all do it. :)