Hello!
Could anyone tell me how to code an html page so that it opens to a specific size?
Thanks for the help.
Onvalavoir
![]()
| SitePoint Sponsor |
Hello!
Could anyone tell me how to code an html page so that it opens to a specific size?
Thanks for the help.
Onvalavoir
![]()





this will get you started. Put this in the HEAD tag of your page:
<script language="javascript">
<!--
function PopUp(){
window.open('yourpage.html','newWin','scrollbars=no,toolbar=no,width=200,height=200');
}
-->
</script>
and then call it like so:
<a href="javascript:PopUp();">Open a new Window</a>
Just so you know, make sure to take out the space between java and script.
All you need to do is change the values in the line above. Change the width and height and then you can also change the page that you call in the script.
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes
Bookmarks