Old 01-06-2008, 04:51   #1 (permalink)
cgst81
Registered User
 
Join Date: Jun 2008
Posts: 1
creating a link to close window

How do I create a link to close an HTML window?
Thank
  Reply With Quote
Old 01-06-2008, 05:41   #2 (permalink)
artsyguy
Web Designer
 
Join Date: May 2008
Location: Vancouver, BC
Posts: 17
<a href="javascript:window.close();">Close</a>
  Reply With Quote
Old 01-06-2008, 12:32   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
That's the easy way, yes, but it'd be better to separate your markup and behavior. Even going so far as to add the "close" link via the DOM instead of hard-coding it into your HTML.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8