Solved

FP98 - new window within a window

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Problem to be resolved in this article Currently, development of website and web application can be done without writing thousands of lines of programming code by hand. Description This can be done through by using a open source framework such …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
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…
This video teaches users how to migrate an existing Wordpress website to a new domain.

758 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

21 Experts available now in Live!

Get 1:1 Help Now