Solved

FP98 - new window within a window

Posted on 1999-01-11
3
171 Views
Last Modified: 2013-12-25
I am designing a discount coupon site. When on a customers page I would like to click a coupon link and have a smaller window open with the coupon displayed (kind of nested so you can see the coupon in front and still see the original page in back.) Is it also possible to have a print button and close window button in the smaller window?
0
Comment
Question by:mauler
[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
3 Comments
 
LVL 4

Accepted Solution

by:
ruperts earned 200 total points
ID: 1857888
This code will bring up a window when the link is clicked!
I used on a page to bring up my address..
Just change the haddress.htm to your coupon page...


<script language="JavaScript">

<!-- hide yourself from other browsers you shameful script
function WinOpen2() {   msg=open("haddress.htm","AddressWindow2","toolbar=yes,directories=no,menubar=no,location=no,status=no,scrollbars=no,resizable=no,copyhistory=yes,width=415,height=240");}
<!-- stop that hiding you cowardly script you-->

</script>
<P><font size=+2>M</font>y snail-mail address is just a click away, using the amazing power of Java Scripts, I can produce, as if my magic, my address. Just click the button below!
<center>
<FORM><input type="button" Value="Home Address" ONCLICK="WinOpen2()">
</center>
0
 
LVL 4

Expert Comment

by:ruperts
ID: 1857889
You can change the size of the box by the width and height options.



0
 

Author Comment

by:mauler
ID: 1857890
Thanks Rupert, that worked perfectly
0

Featured Post

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
CSS: How do I override in-line styling 11 32
asp Google Map 2 65
migrating to phpbb forum from vBulletin 4.2 3 41
Is sending authentication through SOAP secure? 3 38
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

730 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