Opening a new browser window to a specific size without the menu bar and address window.

U

UJ

How can I open a window, preferably through a hyperlink, that will open a
new window with no menu bar/address bar and is a specific size?

TIA - Jeffrey.
 
C

Curt_C [MVP]

UJ said:
How can I open a window, preferably through a hyperlink, that will open a
new window with no menu bar/address bar and is a specific size?

TIA - Jeffrey.
Its clientside code...
Look at the window.open() call from javascript. It will allow you to do
what you requested.
 
J

John Timney \(ASP.NET MVP\)

theres a little example to help you along, just needs the extra options
adding

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

<html>
<head>
<script language="VB" runat="server">

Sub Page_Load( sender as Object,e as EventArgs)

'Form the script that is to be registered at client side.
Dim scriptString as String = "<script language=JavaScript> function
DoClick() {"
ScriptString +=
"window.open('http://www.mvps.org','MyWindow','width=500,height=500');}<"
scriptString += "/"
scriptString += "script>"

If(Not IsClientScriptBlockRegistered("clientScript"))
RegisterClientScriptBlock("clientScript", scriptString)
End If
End Sub
</script>
</head>
<body topmargin="20" leftmargin="10">
<form id="myForm" runat="server">

<INPUT id="launchButton" onclick="DoClick();" type="button"
value="Submit" name="myButton" runat="server">


</form>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top