Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / August 2006



Tip: Looking for answers? Try searching our database.

trap of click event for firefox and IE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fuehrer - 31 Aug 2006 05:22 GMT
Hi guys,

Is there any way i can trap the click event of the close, refresh,
back,home and the forward button? Also i need this to work for both
firefox and IE. I'm new to JS so please make it as simple as possible.

Thanks in advance

ganesh
RobG - 31 Aug 2006 07:42 GMT
> Hi guys,
>
> Is there any way i can trap the click event of the close, refresh,
> back,home and the forward button? Also i need this to work for both
> firefox and IE. I'm new to JS so please make it as simple as possible.

Not with JavaScript.  Some of those actions may cause a load or an
unload event to occur and you can usually make things happen when they
do (but not 100% reliably).  You can't trap events that aren't part of
the document or window event model.

Signature

Rob

Richard Cornford - 31 Aug 2006 08:05 GMT
> Is there any way i can trap the click event of the close,
> refresh, back,home and the forward button?

No.

> Also i need this to work for both firefox and IE.

"Need"?

> I'm new to JS so please make it as simple as possible.

;)

Richard.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.