Forum Moderators: open

Message Too Old, No Replies

Setting Size of New Window

Setting Size of New Window

         

domoftheuk

1:15 am on Jul 16, 2004 (gmt 0)

10+ Year Member



yo ppl i need your help please
Help On: when a user on my page clicks a hyperlink i would like that hyperlink to open in a new window at a certain size say for example h=400 w=500. How can i do this im currently using the script below can that be modified to open at a certain size or is there a better way please help thank you.

<head>
<!-- Terms of Use onClick Open New Window Script -->
<script language="JavaScript">
<!--

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no");
}

-->
</script>
<!-- Terms of Use onClick Open New Window Script -->
</head>

<body>
<!-- Terms of Use onClick Open New Window Script --><a href="javascript:Start('terms-of-use.html')";>Terms of Use</a><!-- Terms of Use onClick Open New Window Script -->
</body>

Rambo Tribble

3:04 am on Jul 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OpenWin = this.open(page, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,height=400,width=500");

domoftheuk

11:03 am on Jul 16, 2004 (gmt 0)

10+ Year Member



that was great help and it works

thank you Rambo Tribble