Okay .. it is working fine !!
Regards,
Chandrabhan Dutta Majumdar
Software Engineer,
Infosys Technologies Ltd.
Tel : 80-852-0261 Extn : 51594
E-mail : chandrabhan_dutta@i...
-----Original Message-----
From: Arun Kumar [mailto:akumar@g...]
Sent: Wednesday, September 11, 2002 5:09 PM
To: javascript
Subject: [javascript] RE: How ro stop event fired by F5 key to refresh
the page
I have done it as following its working
if (document.all)
{
document.onkeydown =3D function ()
{
var key_f5 =3D 116; // 116 =3D F5
if (key_f5=3D=3Devent.keyCode)
{
event.keyCode=3D0;
alert (event.keyCode+" F5 was press!");
return false;
}
}
}
Arun
----- Original Message -----
From: "chandrabhan_dutta" <chandrabhan_dutta@i...>
To: "javascript" <javascript@p...>
Sent: Wednesday, September 11, 2002 4:53 PM
Subject: [javascript] RE: How ro stop event fired by F5 key to refresh
the
page
But is it working? I have given onkeypress in <body> tag and called a
function where i am doing event.returnValue=3Dfalse; if keycode is 116,
but it
is still refreshing
Regards,
Chandrabhan Dutta Majumdar
Software Engineer,
Infosys Technologies Ltd.
Tel : 80-852-0261 Extn : 51594
E-mail : chandrabhan_dutta@i...
-----Original Message-----
From: Arun Kumar [mailto:akumar@g...]
Sent: Wednesday, September 11, 2002 4:52 PM
To: javascript
Subject: [javascript] RE: How ro stop event fired by F5 key to refresh
the
page
thanks man
----- Original Message -----
From: "Sowmindra" <rotti.sowmindra@f...>
To: "javascript" <javascript@p...>
Sent: Wednesday, September 11, 2002 4:37 PM
Subject: [javascript] RE: How ro stop event fired by F5 key to refresh
the
page
> find the keycode of the F5 function key and onkeypress event write the
> following command
> event.returnValue=3Dfalse;
> Regards
> Sowmindra
>
> -----Original Message-----
> From: Arun Kumar [mailto:akumar@g...]
> Sent: Wednesday, September 11, 2002 3:37 PM
> To: javascript
> Subject: [javascript] How ro stop event fired by F5 key to refresh the
> page
>
>
> Hi guys ,
> i have to stop the refresh event fired by F5 key in IE.
> How can i do it .
> Arun
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
>
>
>
> ---
>
> Improve your web design skills with these new books from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
> r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20