Close a page

Javascript coding ..

Moderators: egami, macek, gesf

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

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: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Wed Sep 29, 2004 7:13 pm

Use window_name.close()!
Example:

Code: Select all

<a href="javascript:self.close()">Close me :)</a>
Cheers
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests