It is possible to stop page refresh using javascript.
Hi Matt,
It is possible to stop page refresh using javascript.
All that you have to do is just copy this piece of code in your <HEAD> tag of HTML page (or where you have your other javascript functions).
function showKeyCode(e)
{
//alert("Inside function showKeyCode(e)");
var keycode =(window.event) ? event.keyCode : e.keyCode;
if(keycode == 116)
{
event.keyCode = 0;
event.returnValue = false;
return false;
}
}
And call this function on onKeyDown event in your <BODY> tag.
I have used this code and have been successfuly to stop the page refresh.
Enjoy!!!!!