Hi there!
I am using dreamweaver.
I have a rollover button.
I want to add a "exit" function on that button.
That is,
"If a user clicked on that button, the page would be closed by the user..."
What could I do with that?
Cheers,
| SitePoint Sponsor |
Hi there!
I am using dreamweaver.
I have a rollover button.
I want to add a "exit" function on that button.
That is,
"If a user clicked on that button, the page would be closed by the user..."
What could I do with that?
Cheers,


window.close![]()
and now I must go, before I voice my opinion about dreamweaver rollovers...![]()
Spartan
---------------------
It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
-Mr.Payne
<a href="javascript:window.close()">
Don't forget to place your border and alt tags respectively.


or...<a href="javascript:window.close()">
<a href="vbscript:window.close">![]()
or...do it on the onclick event... onclick="window.close"
I believe that in javascript you could also use self.close
not shure if there is a difference (anybody?)
Last edited by spartan; May 6, 2002 at 06:51.
Spartan
---------------------
It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.
-Mr.Payne
Bookmarks