Close Window
Close WindowAdd this nifty script to your pop up pages for the users to close them :). Six great styles that should work 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>

Close    To Top
  • Prev Article-Web Design:
  • Next Article-Web Design:
  • Now: Tutorial for Web and Software Design > Web Design > JavaScript > Web Design Content
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Geek Tutorial
     

    Blogging Tutorial

      RSS Tutorial
      Podcasting Tutorial
    Graphic Design Tutorial
      Coreldraw Tutorial
      Illustrator Tutorial
      3D Tutorials
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial/ Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial/ Articles
     

    XML Style

      AJAX Tutorial
      XML Mobile
    Flash Tutorial/ Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial/ Articles
      Linux Tutorial
      Symbian Tutorial
      MacOS Tutorial
    Personal Tech
      Hardware Tutorial
      Software Tutorial
      Online Auction