• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java

 
Raju Venuturupalle
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to disable browser's back button in java programming?
Pl assist.
rgds
raju
 
Aman Rustogi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the location replace method when changing the location. This replaces the current history location with the new location. However older browsers do not support this method, which is why it is required to test for the images object:
<script language="JavaScript"><!--
if (document.images)
location.replace('http://www.somewhere.com/apage.html');
else
location.href = 'apage.html';
//--></script>
or
Use href="javascript:location.replace('url'); to disable the browser back button
cheers
Aman

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic