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

Opening a new window

Status
Not open for further replies.

MikeWiz628

Programmer
Dec 24, 2002
22
US
This is driving me crazy and I was wondering if anyone can give me a hand with this.

I'm in an aspx page and I want to open a new window when a button is clicked.

Here's what I have:
Response.Write(&quot;<SCRIPT Language=VBScript>&quot; & vbCrLf)
Response.Write(&quot;window.open&quot; & &quot;(&quot; & &quot;&quot;&quot;version.htm&quot;&quot;&quot; & &quot;)&quot; & vbCrLf)
Response.Write(&quot;</SCRIPT>&quot;)

That works fine, however, when I start to add specifications it doesn't work. I'd like to size it to a particualr size.

Is this possible? I'm thinking that I'm getting my quotations all screwy.

Thanks in advance!
 
Thanks for the help. It turned out that my problem was leaving the features and name values within the parentheses.

Here's what I have now (and it works):
Dim sURL As String = &quot;&quot;&quot;version.htm&quot;&quot;&quot;
Dim sName As String = &quot;&quot;&quot;Version&quot;&quot;&quot;
Dim sFeature As String = &quot;&quot;&quot;width=500,height=200,left=300,top=200,directories=no,location=no,resize=no&quot;&quot;&quot;
Dim sScript As String = &quot;window.open&quot; & &quot;(&quot; & sURL & &quot;)&quot; & &quot;,&quot; & sName & &quot;,&quot; & sFeature

Response.Write(&quot;<SCRIPT Language=VBScript>&quot; & vbCrLf)
Response.Write(sScript & vbCrLf)
Response.Write(&quot;</SCRIPT>&quot;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top