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

Can you change the pop up window size with HTML?

Status
Not open for further replies.

timezone

Programmer
Dec 13, 2000
3
0
0
US
Can you change the pop up window size with HTML?

Would like to know if you can change the size of a web page with HTML ? I would like to do the same thing that is done on the TV guide site: Once you click on a hot spot another window opens up but much smaller . It seems they do it with Java but I don’t know Java at this time. can this be done with html? . Thanks
 
You must know that Java and JavaScript is two different languages and similiarity if their names is just bad joke. Second onening of new window can be done with plain HTML (but not recommended - if user want to open you link in new window (s)he can do this, if not you MUST NOT force user to do this). However opening customized windows can be done only with JavaScript (Java can create any windows, but not browser windows - java-application windows). So if you want to open window with specific size you should look at
one simple example here:
Code:
<a href=&quot;something.html&quot; onclick=&quot;window.open(this.href, 'new', 'width=300,height=200'); return false;&quot;>click here</a>
Michael Dubner
Brainbench MVP/HTML+JavaScript

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top