-
Window.Close - Problem
Sups.
I got a pop up window with a link says "Close This Window"
I would it to close that popup window when the user clicks the link.
Ive tried OnClick="Window.close()" but it aint workin..
How can i do that? I know its simple..just cant remember :D
tnx
-
This works fine for me:
Code:
<a href="#" onclick="window.close();">close this window</a>
What browser are you testing in?
-
Yeah just do what the Hobo says. It's probably because you have the case wrong, Window is different from window.
-
Quote:
OnClick="Window.close()"
Change this to:
OnClick="window.close();"
Small "w" in window...
/Smirre