- Script for No Enter Action:
function noenter()
{
var key;
if(window.event)
key = window.event.keyCode; //IE
return (key!= 13); //13 ASCII code
}
the page_load event call this method as:
this.Form.Attributes.Add("onkeypress", "return noenter()");
- Script for Browser Back Disable & Browser Back:
javascript:window.history.forward(1);<script>
javascript:history.back(1)and also for Browser back.
- Script for Right Click Disable:
- Script for alert message while closing (Unloading) the Page:
No comments:
Post a Comment