Solved

How do i create a popup window using vbscript/asp?

Posted on 2004-09-08
2
1,825 Views
Last Modified: 2012-06-27
I am trying to create a hyperlink to open up a popup window on click using vbscript/asp.

The popup windows will be a page with basic html formatting.

I want to be able to specify ALL attributes of the popup window including but not limited to size, location, background color.

Thanks
0
Comment
Question by:yi_unt
2 Comments
 
LVL 10

Expert Comment

by:rockmansattic
ID: 12012117
javascript will have to open the browser window, but you can still utilize vb something like this

<p onClick="MM_openBrWindow('<%=filename%>','chat','scrollbars=yes,resizable=yes,width=600,height=500')">link</p>


Rockman
0
 
LVL 31

Accepted Solution

by:
seanpowell earned 200 total points
ID: 12016797
This should cover it...

<html>
<head>
<title></title>
<script type="text/javascript">
<!--
function dopopup()
{
var chrome= "width=377,"
      + "height=483,"
      + "location=0,"
      + "menubar=0,"
      + "resizable=0,"
      + "scrollbars=0,"
      + "status=0,"
      + "titlebar=0,"
      + "toolbar=0,"
      + "hotkeys=0,"
      + "left=0,"
      + "top=0";
      x=window.open('mypopup.html',null,chrome);
      x.parent.document.title="Look at me!";
      x.parent.document.body.style.backgroundColor="red";
}
//-->
</script>
</head>
<body onLoad="dopopup();x.focus();">
Original Page
</body>
</html>
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

746 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

15 Experts available now in Live!

Get 1:1 Help Now