View Single Post
  #5 (permalink)  
Old September 3rd, 2003, 03:55 AM
meow meow is offline
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Why should I preview? Did I write something funny that I don't see myself?

You use it in an event handler in the same way as the window.open(). If you want it to work in Ye Old Browsers like Nav 4 it needs to be in a link. If that doesn't matter you don't have to use a link.

For example:
<a href="#" onclick="window.close()"><img src="closepic.gif"></a>

(o<
//\ =^..^=