Question: code to disable back button of browser

Ads

 
 
 

Share on Google+Share on Google+

Sunil Kumar Verma
code to disable back button of browser
5 Answer(s)      6 years and 5 months ago
Posted in : HTML

code to disable back button of browser

Ads
View Answers

June 6, 2012 at 11:16 AM


<script language="JavaScript" type="text/javascript">
window.history.forward(1);
</script>

by using the above code we can restrict the page by going back



June 6, 2012 at 11:17 AM


<script language="JavaScript" type="text/javascript">
window.history.forward(1);
</script>


August 31, 2012 at 4:13 PM


sry friends, its not working........ I am working on an application. The logout does not actually ensure termination of session. for eg. after logout if back button is pressed the last viewed page is displayed and this can be viewed as a security threat. Can any one give me a solution. Thanks in advance!!



March 17, 2015 at 12:04 AM


It might help you!!

How to disable browser back button using JavaScript? http://www.code-sample.com/2013/08/disable-browser-back-button-javascript.html

Thank you!!



March 17, 2015 at 12:04 AM


It might help you!!

How to disable browser back button using JavaScript? http://www.code-sample.com/2013/08/disable-browser-back-button-javascript.html

Thank you!!


Ads









Related Tutorials/Questions & Answers:
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
code to disable back button of browser
code to disable back button of browser  code to disable back button of browser
Advertisements
how to disable browser back button
how to disable browser back button  Am doing a web application in that how to disable browser back button using java script
How to disable back button in browser using javascript
that will disable the working of Back button in Browser: <SCRIPT type="...There are times while developing a website, we need to disable back button... of the time the back button is disabled because a user can hit back
how to disable back button of a browser after logging in? - JSP-Servlet
how to disable back button of a browser after logging in?  how to disable back button of a browser after logging in?  where is the source code
How to disable browser back and forward button after logout [in struts2 or jsp]
How to disable browser back and forward button after logout [in struts2 or jsp]  How to disable browser back and forward button after logout... click the back button of the browser more than one time
Browser Back Button Disable/Hide/Invisible using Java Script
Browser Back Button Disable/Hide/Invisible using Java Script  Dear Sir, Please Help..., Q: How to Write Code For Browser Back Button Disable/Hide/Invisible using Java Script without Page Reload/Refreshing. anyone
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p  Hi, I have designed a "back" button for jsp page. Now I want to disable Browser's default button So that people will use "back
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p
How to disable Browser's back button (at the same time i want my own back button to be enabled) :p  Hi, I have designed a "back" button for jsp page. Now I want to disable Browser's default button So that people will use "back
disable back button - Java Beginners
disable back button  I wanted the code for disabling back button... displayed but..when i click back button i go back to the register page which should... details with source code to solve the problem. Thanks  Hello
Browser's back button
Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
Enable Browser's back button
Enable Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
Browser's back button
Browser's back button  how to redirect to a home page when browser's back button is pressed in jsp instead of displaying the previous page
browser back button
browser back button   hi...i created one page in JSF.that page had three form division.in first form one add button is there.if i click that button move to second form,then i click browser back button ,it moves on another page.so
disabling the browser's back button
disabling the browser's back button  I have following requirement, After submitting the form, user should not navigate to the previous page. I have tried with onbeforeunload(), but it is not working properly. Please help me
How to disable browser back after logout - JSP-Servlet
. Anyone having idea how to disable browser back button after logout, please...How to disable browser back after logout  Dear All I created JSP... problem is, when i am clicking browser back button i can see my old visited pages
How to disable browser back after logout - JSP-Servlet
How to disable browser back after logout  thanks deepak, i tried but if i am clicking back still i can see my old pages. i copied your code... ..... i am sending u a javascript code which shall be very usefull make
Browser Back Button click event javascript
Browser Back Button click event javascript  I am using the below code but window.onBeforeUnload is not working with back button.. how can i apply the below code for the click event of back button? window.onBeforeUnload
Back button
Back button  how to redirect to a home page when a back button is pressed in jsp instead of displaying the previous page
Browser Back/Forward - Struts
Browser Back/Forward  Hi, Greetings to all. I have developed a web application using Struts 2. Now, i want to enable browser back/forward/bookmarking in that. Can anyone post me some links/tutorial/examples or how to go
disabling back button
press back button i again reach to the back page ie. authentication page so if any one can help me how to disable this button...disabling back button  hi, i am trying to make an application and i
Disable offline browser access - Security
Disable offline browser access    Hi Please help me to solve... the offline browser issue for the security purpose. But so far I don't find any solution. What I needed is; When the user clicks the website from the browser
Disabling the back button in all the browsers
Disabling the back button in all the browsers  I have a requirement like this, I have to disable back button of all the browsers(It should support all the browsers). Can u plz help me
uinavigationcontroller back button action
will display the back view on click of a button in my iPhone and iPad based application. Give me any code for uinavigationcontroller back button action method. Thanks...uinavigationcontroller back button action  Hi, Tell me how to back
PushViewController back button
it always show back button.   In your ViewDidLoad method just hide the navigation back button as given in the code. navigationItem.hidesBackButton = YES...PushViewController back button  How can i hide the back button
back button issue - Java Beginners
of problem there is two solutions 1- you can disable the back button...back button issue  Hello, I have a site that asks for user... pushs the back button of the explorator he can entry in the page of first user
navigation item back button
navigation item back button  I wants to add a navigationBar on the top of my UIWebView also a navigation item "back button". can anyone please explain how the back and refresh button works
back button in jquery
back button in jquery  Creating a back button in JQuery   <script src="/javascript/jquery.min.js"></script> <script type="text/javascript">     $(document).bind("mobileinit", function(){     
JSP Back Button
JSP Back Button          Jsp Back Button enables the user back... illustrate an example from 'JSP Back Button'. To understand the example we have used
uinavigationcontroller back button not showing/ missing
uinavigationcontroller back button not showing/ missing  Hi, In my... but ... somehow in the next view uinavigationcontroller back button not showing...... as the uinavigationbar back button use the title of the previous view
Session expire and back button in jsp and servlet .
previous pages by clicking back button of browser without again logging. Plz sir give me the full working code of this .It is the starting need of my project... Session expire and back button in jsp and servlet .  Hii Sir
Tutorials   
Java Spring Hibernate Struts Training How to display button as a link in vaadin? hi change navbar dropdown color in bootstrap How to remove the background color of bootstrap menu bar? How to change color of opened Bootstrap drop down toggle? Setting bootstrap container background color Help school all activities and admision process.. add one row after another date make a webpage HTMl HTMl Source code how to apply globalisation to a world wide asp.net application how to print HTML using javascript or Jquery How to recover from google panda update? How to survive google panda 4.0 update How to find if you have been hit by Panda 4.0 Design a web page using XHTML and JavaScript that does the followings: ffmpeg converting file mp4 to mov JavaScript How to Disable Catch-all Emails on CPanel z-index always on top What is Web hosting Database and HTML web development trainee Uploading files Image Gallery Image Gallery dropdown How to redirect from a HTML page? Easiest method for expiring the css and js headers HTML WITH AJAX VB 6 Read Web Page Header string palindrom using vbscript? html button How to add mod_deflate to apache without recompiling How to use place hoder in IE(version : 8) Html Software Question div align left css Fetching data from excel file on other website and display in interactive graph form where do I find the fix for tree view catalog not expanding and collapsing correctly for roseindia shopping cart 1.1 pass to next page to enter into a particular page only if the username,password and listbox value mtches hi Cricket stadium ticket booking design Need some help creating an order form. HTML div tag HTML div tag

Ads

 
Advertisement null

Ads