ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

CLOSE WINDOW

Many websites use popup windows that display while you are surfing their website. They are very commonly used for displaying advertisements. They are also often used for site Help files, short surveys, and a few other things. Well, if you are going to use a popup window on your website, it is proper netiquette to include a close window button or link within the popup window. All you have to do is choose if you want to display a close window button or link and paste the one line of code below into your page. It just doesn't get any easier than that!

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>
</HEAD>

<BODY>

<FORM>
<input type=button value="Close Window" onClick="javascript:window.close();">
</FORM>
or <a href="javascript:window.close();">Close Window</a>

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
21 March 2010