Solved

FP98 - new window within a window

Posted on 1999-01-11
3
170 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select2 jquery help 9 88
Reinstall Putty Windows 7 5 64
Shopping Cart 2 65
business account would work BUT i do not want to use business account 2 60
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

785 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