Solved

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

Posted on 2004-09-08
2
1,832 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
[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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

When deciding to adopt any help desk solutions many factors should be explored before taking decisions. This will change from business to another but in general there are some kind of rule of thumb. Here are some quick tips: Do we need only ticket…
Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. 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 :…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

749 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