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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window Sizing

Status
Not open for further replies.

ssnapier

Technical User
Feb 17, 2001
67
US
I want to make a new window come up off a link, but I want it to be very specific. I want people to click on a link and have a pop-up window showing a picture, with no toolbars, and a specific size. How do I do this?
 
well this is a javascript question, but ill answer it here for you:

first you need a function like this in the <head> of your page:

Code:
<script language=&quot;javascript&quot;>
function openWin() {
   window.open(&quot;myWin.htm&quot;, &quot;myWin&quot;, &quot;width=200, height=400, toolbar=no, status=no, resizeable=no&quot;);
}
</script>

then in the <body> tag of the pop-up put: scroll=no
next your link should look like this:

<a href=&quot;javascript:eek:penWin()&quot;>look at my pic</a>

or if your link changes the main page:

<a href=&quot;page2.htm&quot; onClick=&quot;openWin()&quot;>look at my pic</a>


-hope that helps -Greg :-Q
 
Thanks, I am all over it.... wasn't sure where to post as I had never done that before.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top