Solved

Opening a new window and controlling the size

Posted on 2000-03-22
2
132 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 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

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

630 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