Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Opening a new window and controlling the size

Posted on 2000-03-22
2
Medium Priority
?
134 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
Bhargava earned 300 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
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 …

670 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