Solved

Opening a new window and controlling the size

Posted on 2000-03-22
2
126 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Newbie CSS questions 4 24
Image not there 4 33
Condidional <a href = ....> 1 23
Bootstap Icons 3 18
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now