Web Design Newsletter

Tips for Small Business Owners

CREATING POP-UP WINDOWS

Print the article

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!

 

What did you think of this article?




Trackbacks
Trackback specific URL for this entry
  • No trackbacks exist for this entry.
Comments
    • No comments exist for this entry.
Leave a comment

Submitted comments will be subject to moderation before being displayed.

 Enter the above security code (required)

 Name (required)

 Email (will not be published) (required)

 Website

Your comment is 0 characters limited to 3000 characters.