Close a page

Javascript coding ..

Moderators: macek, egami, gesf

kiwi
New php-forum User
New php-forum User
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am
Contact:

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

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

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


Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest