Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

FP98 - new window within a window

Posted on 1999-01-11
3
Medium Priority
?
178 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 800 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to dynamically set the form action using jQuery.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

722 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