Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Close a page

Javascript coding ..

Moderators: macek, egami, gesf

Close a page

Postby kiwi » Wed Sep 29, 2004 10:23 am

any method for me to use , i want to close a page, by clicking a link or button? thanks
kiwi
New php-forum User
New php-forum User
 
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am

Postby gesf » Wed Sep 29, 2004 7:13 pm

Use window_name.close()!
Example:
Code: Select all
<a href="javascript:self.close()">Close me :)</a>
Cheers
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron