CREATING POP-UP WINDOWS
This entry was posted on 7/8/2007 12:45 PM and is filed under How To.
CREATING POP-UP WINDOWS
by Anna Dalea, ERT Website Solutions
I don't know about you, but I sure do get annoyed at the automatic popups that block what i'm trying to see on the screen. I do like the totally UNANNOYING popups that you can create so that when someone clicks on a link it opens up a smaller window, just big enough for the info you want them to see or sign up for. Here's how you do it:
On the page that you're link is on that you would like someone to click on that in turn opens a new SMALL "popup" window, insert this code:
<a href="sub_services/customer_service.html" target="_blank" onclick="NewWindow(this.href,'name','550','550','yes');return false">Customer Service</a>
1) Change the string "sub_services/customer_service.html" to the path of the small window you want people to see. NOTE: It helps if you know the width and height of your SMALL page ahead of time.
2) Then just change the '500','500' to the width and height that you desire.
3) Lastly, change the words "customer service" to what you want to appear as the link. You can also insert a picture here as well... it just turns it into a link.
Have fun!