solomania9
Technical User
Hi All,
The answer to my question is probably quite simple, but here goes...
I want to launch different windows with different widths and heights but USING THE SAME FUNCTION in the head of the document. Here's what I have so far...
Inside the <head>:
function newWindow(url, newWidth, newHeight) {
voteWindow = window.open(url, 'title', 'scrollbars=no,width=492,height=newHeight')
}
and on the link:
<a href="javascript:newWindow('agfa.html', '200', '200')"
Let me know why it's not working. Thanks!
~Mike
The answer to my question is probably quite simple, but here goes...
I want to launch different windows with different widths and heights but USING THE SAME FUNCTION in the head of the document. Here's what I have so far...
Inside the <head>:
function newWindow(url, newWidth, newHeight) {
voteWindow = window.open(url, 'title', 'scrollbars=no,width=492,height=newHeight')
}
and on the link:
<a href="javascript:newWindow('agfa.html', '200', '200')"
Let me know why it's not working. Thanks!
~Mike