Add this nifty script to your pop up pages for the users to close them :). Six great styles that shouldwork if done properly.Closing a Regular Window from a Link
| <a href="javascript:window.close()">Close</a> |
Closing a Regular Window from an Image
| <a href="javascript:window.close()"> <img border="0" src="closingwindows.gif" width="95" height="46"> </a> |
Closing a Regular Window from a Button
| <form> <input type="button" value="Close" onClick="window.close()"> </form> |
Closing a Frameset Window from a Link
| <a href="javascript:top.window.close()">Close</a> |
Closing a Frameset Window from an Image
| <a href="javascript:window.close()"> <img border="0" src="closingwindows.gif" width="95" height="46"> </a> |
Closing a Frameset Window from a Button
| <form> <input type="button" value="Close" onClick="top.window.close()"> </form> |
Related Articles
- Opening a New WindowTo open a new window, you will need to use yet another ready-made JavaScript function. Here is what it looks like:
- Pop-Under Windows - The Latest Pop-Window TrendAlthough there has been a great deal of controversy over the use of pop-up windows, the fact remains; pop-up windows are highly effective. The latest pop-window trend to hit the Internet is the pop-under window. Pop-under windows are less intrusive than the pop-up windows and are believed to be even...
- PopUp WindowThis code allows your links to pop-up in a new window. Just copy the code below: .
- Javascripts For Your WebsiteHere is a list of short but invaluable Java scripts you can insert into your own site code to implement a number of small but extremely useful features.
- Popup: Hate em or Love emThis great article discusses the pros and cons of popups. The different types of popups and their relative trouble versus click rate makes for interesting reading. The response of users and designers to popups is interesting too.
- Window StatusHow to use this handy function to change the window status in a viewers browser.
- Free Traffic Course - Day 6We will start with one Internet Marketing myth - the pop-ups do not work today. They give no effect to the web site, they do not bring any traffic, just distract the attention. This myth is partially true: old-fashioned pop-ups do not work. Modern pop-ups have advanced much further...
- Remove Banners And Pop-UpsIf you want to get rid of a banner on a free server and are willing to risk it, try these simple HTML tricks to remove it.
- Creating a Floating WindowCreate a floating window on my html page.
- 3 Deadly traffic killers courtesy of web hosting servicesWeb hosts, who are supposed to be your close business partners, and whom you expect to be prepared to do virtually anything to help lift your business to success, can also be the biggest stumbling block and the worst enemy in your search for high traffic and web site success. Here
