Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

792 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