Solved

FP98 - new window within a window

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
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.
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

726 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