Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JScript popup window

Status
Not open for further replies.

zumie

Technical User
Mar 13, 2002
73
US
I have been using a basic JScript popup window with no scrollbars and I'm now trying to produce a window that will open at say 500 px high and scroll.

The code I'm using is:
<script LANGUAGE=&quot;JavaScript&quot;>
<!--
function openWin(URL,width,height)
{
window.open(URL,&quot;newwindow&quot;,&quot;height=&quot; + height + &quot;,width=&quot; + width +
&quot;,toolbars=no,status=no,location=no,scrollbars=1,resizeable=yes&quot;);
}

//-->
</script>

and the anchor tag looks like this:
<a href=&quot;javascript:eek:penWin('graphics/file.jpg',558,500);&quot;>

What happens is the image (width=550,height=800) that opens in the window is resized (but has a scrollbar).

Can someone please tell me where I'm going wrong?

Zumie [peace]



Visualize whorld peas.
 
Take a look at this thread:

thread216-686501
Code:
Be sure not to leave any spaces in the attributes
or the browser will ignore them.

2b||!2b
 
Thanks Lrnmore.

Zumie [peace]



Visualize whorld peas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top