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

pop up window needs larger

Status
Not open for further replies.

111101101

Programmer
Oct 16, 2003
39
US
okay i have a code like....

<a href=&quot;index.htm&quot; target=&quot;_blank&quot;>here</a>

now this code will open up a window to the new page.
but i want the window to be BIGGER.... specifically that has a width and height i can work with.

how do i make the pop up window the size i want?

Thanks,
755
 
<a href=&quot;javascript: window.open('index.htm','winName','height=400,width=400,menubar=yes, scrollbars=yes,addressbar=yes&quot;>here</a>


Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

fart.gif
 
Hi 755,

Have a look at this example I wrote:

Code:
<HTML>
<HEAD>
  <TITLE>JavaScript : Window Opener Example 1</TITLE>
  <SCRIPT LANGUAGE=&quot;JavaScript&quot;>
     function newWin(pageName, windowName) {
       window.open(pageName,windowName,'width=500, height=250');
     }
  </SCRIPT>
</HEAD>
<BODY>
  <A HREF=&quot;#&quot; onClick=&quot;window.open('select.html', 'myWindow', 'width=500, height=250');&quot;>
    Method one
  </A>
  <BR><BR>
  <A HREF=&quot;javascript:newWin('[URL unfurl="true"]http://www.google.com','myWindow');&quot;>[/URL]
    Method two
  </A>
</BODY>
</HTML>

Have a look at this FAQ for all the options when opening a new window : faq216-329

Good luck §;O)


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top