Solved

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

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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…
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 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. …
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…

863 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

18 Experts available now in Live!

Get 1:1 Help Now