Solved

Opening a new window and controlling the size

Posted on 2000-03-22
2
128 Views
Last Modified: 2010-04-09
I can open a document in a new window using the following HTML code:
<a href="#" onClick=window.open('karen.htm','','scrollbars=yes','height=200','width=200')>Sized w/scrollbars</a>

I can open a document in a new window using the following VB Script:
<%
blah, blah, blah
response.write "<a href=""" & "karen.htm" & """ target=""_blank"">in VB Script - New window - No sizing</a>"
blah, blah, blah
%>

WHAT I WANT TO DO is combine the two within VB script. This is just ONE example of what DOES NOT work:
response.write "<a href=""" & "#" onClick=window.open('karen.htm','','scrollbars=yes','height=200','width=200' & """)>Sized w/scrollbars</a>"


0
Comment
Question by:goldstar
2 Comments
 
LVL 2

Accepted Solution

by:
Bhargava earned 100 total points
ID: 2646102
try this

response.write "<a href='#' onClick=window.open('karen.htm','','scrollbars=yes','height=200','width=200')>Sized w/scrollbars</a>"

hope this helps

0
 

Author Comment

by:goldstar
ID: 2646421
Thanks!

What you provided worked!

I will increase your points if you can correct the following.  I am actually linking to an .asp page, and passing a varible - objRec ("fldTip") created earlier in the VBScript.

Again, the following DOES NOT work....................

response.write "<a href='#' onClick=window.open('includes\karenbigtip.asp?tip=' & objRec ("fldTip") & ','','scrollbars=yes','height=150','width=150'>"                              

Or, I will give you the 100 points now, close this, and open a new question.

Your preference.

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question