Hi Andy:)
Pretty funny, I just wrote something like this the other day...
try this:
//Excerpt taken *exactly* from my page, where i popup a product view
//window according to the x,y of the image being Shown...
//here ya go!
//put this in your doc's <head>
<script language="javascript" type="text/javascript">
function ShowPopUpImage(url,windowTitle,x,y)
<!--//hide from 'javascript-challenged' browsers.. :)
{
ShowPopUpImg = window.open(url, windowTitle,
'width='+x+',height='+y+',directories=0,toolbar=0,location=0');
}
//-->
</script>
//of course this goes in the <body>
<a href="#" language="javascript"
onClick="ShowPopUpImage('images/Mixer.gif','PioneerDJM500','585','394');">Vi
ew Mixer</a>
and that should do the trick! as i said, i am using this precise function in
a production page...
Ch33rs,
Chris Duke
DJ/Producer/Programmer/Designer
-----Original Message-----
From: andy@a... [mailto:andy@a...]
Sent: Tuesday, October 17, 2000 6:56 PM
To: javascript
Subject: [javascript] java script paramaters
This is a java question but its for an ASP site so here goes.
I need to dynamically change the size of a window opened using the
window.open method.
I have the following function:-
function OpenDocWindow(url,x,y) {
window.open(url, 'docname', 'width=x,height=y')
}
I've check with using an alert box that the parameters of x & y are being
passed, but the window will not size like this. What am I doing wrong?
Also how can I make the new window 'always on top' I've tried
window.moveto but I can't make it work.
Thanx in advance
Andy G