What is the HTML to change window size?

liunx

Guest
Hi guys<br />
<br />
Im designing my own website and need some advice.<br />
<br />
On the Home page there will be links to various options - Services / About Us / Contact etc. These will when clicked open a small window showing the content of that URL link.<br />
<br />
What is the HTML that will allow me to have this smaller window (sized to what pixel amount I wish) to appear over the current Home Page?<br />
<br />
Any advice will be greatly appreciated.<br />
<br />
Thanks guys<br />
<br />
Stu<!--content--><head><br />
function popUp(pPage) { window.Open(pPage,'popWin','resizable=yes,scrollbars=yes,Width=580,height=460,toolbar=yes,location=y es'); <br />
} <br />
</head><br />
<br />
Then Call it Like this<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"java script:popUp('page.html');"> text</a><!--content-->Thats GREAT!<br />
<br />
Just what I was looking for :) <br />
<br />
Cheers<br />
<br />
Stu<!--content-->You can also do this if you want to make sure that the page always goes to the right size.<br />
<br />
<br />
<script language="javascript"><br />
top.moveTo(0,0);<br />
top.window.resizeTo(screen.availWidth,screen.availHeight);<br />
</script><br />
<br />
<br />
This way if someone does an internet search and finds one of your pages, it resizes when they open it even though they didn't open using the window.open() command.<!--content-->
 
Back
Top