Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 13, 2012 11:29 AM by narasappa
Member
7 Points
36 Posts
Apr 13, 2012 11:05 AM|LINK
I have one default page and it contains 8 panels.in that i navigate panels using next and previous buttons ,I want disable browser back button when my default page is loaded .
pls help me
thanks in adv.
All-Star
97899 Points
14509 Posts
Apr 13, 2012 11:15 AM|LINK
jayaravi I want disable browser back button when my default page is loaded .
you cannot do that with asp.net.... browsers are client side technologies...what you can do is create an illusions to user by setting history.go() like shown here - http://www.aspsnippets.com/Articles/Disable-Browser-Back-Button-Functionality-using-JavaScript.aspx
Thanks,
35559 Points
5698 Posts
Apr 13, 2012 11:24 AM|LINK
try adding this in the head of page
<head> <script language="JavaScript" type="text/javascript">
javascript:window.history.forward(1);
</script> </head>
hope this helps...
Participant
1570 Points
387 Posts
Hi,
Try javascript may this will help you.
http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911/Disabling-the-Back-Button.htm
http://mistonline.in/wp/disable-browser-back-button-using-javascript/
Mark this as answer if it is usefull.
960 Points
459 Posts
Apr 13, 2012 11:29 AM|LINK
script type = "text/javascript" >
function preventBack(){window.history.forward();}
setTimeout("preventBack()", 0);
window.onunload=function(){null};
jayaravi
Member
7 Points
36 Posts
how to disable browser back button when only one page display multiple panels on navaigation
Apr 13, 2012 11:05 AM|LINK
I have one default page and it contains 8 panels.in that i navigate panels using next and previous buttons ,I want disable browser back button when my default page is loaded .
pls help me
thanks in adv.
ramiramilu
All-Star
97899 Points
14509 Posts
Re: how to disable browser back button when only one page display multiple panels on navaigation
Apr 13, 2012 11:15 AM|LINK
you cannot do that with asp.net.... browsers are client side technologies...what you can do is create an illusions to user by setting history.go() like shown here - http://www.aspsnippets.com/Articles/Disable-Browser-Back-Button-Functionality-using-JavaScript.aspx
Thanks,
JumpStart
kedarrkulkar...
All-Star
35559 Points
5698 Posts
Re: how to disable browser back button when only one page display multiple panels on navaigation
Apr 13, 2012 11:24 AM|LINK
try adding this in the head of page
<head>
<script language="JavaScript" type="text/javascript">
javascript:window.history.forward(1);
</script>
</head>
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
Mandeep Joon
Participant
1570 Points
387 Posts
Re: how to disable browser back button when only one page display multiple panels on navaigation
Apr 13, 2012 11:24 AM|LINK
Hi,
Try javascript may this will help you.
http://viralpatel.net/blogs/2009/11/disable-back-button-browser-javascript.html
http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911/Disabling-the-Back-Button.htm
http://mistonline.in/wp/disable-browser-back-button-using-javascript/
Mark this as answer if it is usefull.
Mandeep Joon
Blog:- Hightechnology.
narasappa
Participant
960 Points
459 Posts
Re: how to disable browser back button when only one page display multiple panels on navaigation
Apr 13, 2012 11:29 AM|LINK
script type = "text/javascript" >
function preventBack(){window.history.forward();}
setTimeout("preventBack()", 0);
window.onunload=function(){null};
ravi.jadiyannavar@gmail.com
Pls Mark This Post As Answer If it Helps U..
Thanku