Close Window

Close WindowAdd 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 Window
    To 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 Trend
    Although 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 Window
    This code allows your links to pop-up in a new window. Just copy the code below: .
  • Javascripts For Your Website
    Here 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 em
    This 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 Status
    How to use this handy function to change the window status in a viewers browser.
  • Free Traffic Course - Day 6
    We 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-Ups
    If 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 Window
    Create a floating window on my html page.
  • 3 Deadly traffic killers courtesy of web hosting services
    Web 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

Contact Web Design Outsource and get started today

Need Website Designing, Development, Redesigning, Maintenance and SEO services or help growing your company's web presence? Request a free Quote Now.