disable backward and forward buttons of the browsers

disable backward and forward buttons of the browsers

View Answers

September 30, 2009 at 3:58 PM

U can not do it ......

But one siggestion...

If u open that page in new window with no toolbar and
other properties disabled and disable the right click on that page you can prevent user to perform those functions.

just an ieda....



This script will disable the back button from keyboard. So user cant able to go to the previous page.

<HTML>
<HEAD>
<script>
function checkShortcut()
{
//alert(event.keyCode);
if(event.keyCode==8 || event.keyCode==13)
{
return false;
}
}
</script>
</HEAD>
<body onkeydown="return checkShortcut()">
Test
</HTML>

This script will disable shift+F10 button
<html>
<head>
<title>Javascript split function</title>
<script language="javascript">
function test(){
window.showModalDialog("http://www.msn.com","Dialog Arguments Value","dialogHeight: 500px;

dialogWidth: 500px; dialogTop: 288px; dialogLeft: 209px; edge: Sunken; center: Yes; help:

Yes; resizable: No; status: No;");
}
</script>
</head>
<body>

<form name="frm" action="" method="post">
<input type="button" name="showModalDialog" value="showModalDialog" onclick="test()">
</form>
</body>
</html>



happy programming..

Regards...,Britto.M

September 30, 2009 at 4:13 PM

Hi,

Try with the following code...


parent.html
-----------


<HTML>
<HEAD>
<script language="javascript">
{
var winParms = "Status=no" + ",addressbar=no,scrollbars=yes" + ",resizable=no" + ",height="+500+",width="+500;
var newwindow = window.open("test.html.",'Login',

September 30, 2009 at 4:15 PM

Hope the following code will help you,,


parent.html

<HTML>
<HEAD>
<script language="javascript">
{
var winParms = "Status=no" + ",addressbar=no,scrollbars=yes" + ",resizable=no" + ",height="+500+",width="+500;
var newwindow = window.open("test.html.",'Login',winParms);
%

September 30, 2009 at 4:15 PM

Hope the following code will help you,,


parent.html

<HTML>
<HEAD>
<script language="javascript">
{
var winParms = "Status=no" + ",addressbar=no,scrollbars=yes" + ",resizable=no" + ",height="+500+",width="+500;
var newwindow = window.open("test.html.",'Login',winParms);
%

September 30, 2009 at 4:16 PM

Hope the following code will help you,,


parent.html

<HTML>
<HEAD>
<script language="javascript">
{
var winParms = "Status=no" + ",addressbar=no,scrollbars=yes" + ",resizable=no" + ",height="+500+",width="+500;
var newwindow = window.open("test.html.",'Login',winParms);
%









Related Tutorials/Questions & Answers:
disable backward and forward buttons of the browsers - JSP-Interview Questions
disable backward and forward buttons of the browsers  Dear, Thanks for your last reply. I want if you help me to disable the backward of forward... to any website when i logout, i can not do forward or backward. In this way I
disable backward and forward buttons of the browsers - JSP-Interview Questions
disable backward and forward buttons of the browsers  Dear, Please can you help me : I want to disable backward and forward buttons of the browsers (internet Explorere, Mozilla, Firefox, netscape and so). Is it possible
Advertisements
disable and enable the submit buttons
disable and enable the submit buttons  i have two summit button in my form. one is disabled and other is navigating to the other page. after 3 submissions of the submit button the disabled one must be enabled and the enabled one
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 [in struts2 or jsp] I am using window.history.forward(); function
Buttons
Buttons  I have created a web page with radio button group with two radio buttons for accepting the home appliances categories,Kitchen appliances and other appliances.I want to check for the appliance chosen when the required
disable function
disable function  Sir, I have called a java script function when one radio button is checked i want to disable this function when another radio button is checked ,both radio buttons are of same group Please help Thanks in advance
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
ModuleNotFoundError: No module named 'django-backward'
ModuleNotFoundError: No module named 'django-backward'  Hi, My... named 'django-backward' How to remove the ModuleNotFoundError: No module named 'django-backward' error? Thanks   Hi, In your python
Forward - Struts
Forward  Hi how to get the return value of execute() in Action class. we will write return mapping.findForward("success"); how to get the value of forward. Is there any method to get the which forward is executing
How to disable an HTML object?
How to disable an HTML object?  How to disable an HTML object
enable disable checkbox in javascript
enable disable checkbox in javascript  How to enable disable checkbox in javascript
uikeyboard disable return key
uikeyboard disable return key  uikeyboard - hot to disable return key
JSP Forward action
JSP Forward action  Jsp forward action tag examples
ModuleNotFoundError: No module named 'browsers-detector.py'
ModuleNotFoundError: No module named 'browsers-detector.py'  Hi...: No module named 'browsers-detector.py' How to remove the ModuleNotFoundError: No module named 'browsers-detector.py' error? Thanks   Hi
Disable UITableView Scrolling
Disable UITableView Scrolling   How to disable the UITableView Scrolling either programmatically or in XIB
which tags work on which browsers
which tags work on which browsers  Is there a site that shows which tags work on which browsers
radio buttons
radio buttons  write a program to create an applet button which has a list of radio buttons with titles of various colours.set the background colour... has a list of radio buttons with titles of various colors and a button
ModuleNotFoundError: No module named 'forward'
ModuleNotFoundError: No module named 'forward'  Hi, My Python... 'forward' How to remove the ModuleNotFoundError: No module named 'forward... to install padas library. You can install forward python with following command
disable keyboard in java applet
disable keyboard in java applet  How to disable key board of my client in an java applet embedded in a website while the applet is running.? Plz help
Difference between forward and sendRedirect
Difference between forward and sendRedirect  What's the difference between forward and sendRedirect?   RequestDispatcher.forward... to another jsp or servlet. sendRedirect() is more flexible than forward
Java Enabled browsers
Java Enabled browsers      ... java enabled. Mostly used java enabled web browsers are Internet Explorer ... browsers are java enabled. There are various ways to check whether the browser
org.apache.lucene - lucene-backward-codecs version 9.4.0 Maven dependency. How to use lucene-backward-codecs version 9.4.0 in pom.xml?
org.apache.lucene  - Version 9.4.0 of lucene-backward-codecs Maven...-backward-codecs in pom.xml? How to use lucene-backward-codecs version 9.4.0 in pom.xml... org.apache.lucene  - Version 9.4.0 of lucene-backward-codecs in project
Maven Repository/Dependency: org.apache.lucene | lucene-backward-codecs
Maven Repository/Dependency of Group ID org.apache.lucene and Artifact ID lucene-backward-codecs. Latest version of org.apache.lucene:lucene-backward-codecs dependencies. # Version Release Date
add Buttons in JavaScript
add Buttons in JavaScript  How to add Buttons in JavaScript
jsp:forward tag ussage
jsp:forward tag ussage  can you give me example of how to use jsp:forward tag... i intend to call action class   Hi Friend, Please visit the following links: http://www.roseindia.net/jsp/jsp-forward-request.shtml
enable disable table
enable disable table  hi I have table with 3 columns if i click one column the other 2 column should disable pls can anyboby help me
uitextfield disable keyboard
uitextfield disable keyboard  How to disable keyboard of UITextView in iPhone SDK application?   There are two ways to disable the keyboard...)]; [self.view addSubview:pv]; return NO; } //or simply disable
jsp forward action tag
jsp forward action tag  Defined jsp forward action tag ?   ... application context as the forwarding JSP file. Syntax of forward action Tag:ADS_TO_REPLACE_1 <jsp:forward page="{relativeURL | <%= expression %>}" />
jsp forward not functioning
jsp forward not functioning  If the form in AddStudent.jsp...:forward page = "MainMenu.html"/> <%}%> Also if one field...". Is it because of that, the jsp:forward is not forwarding
forward error message in struts
forward error message in struts  how to forward the error message got in struts from one jsp to other jsp?   Hello Friend, Use <%@ page errorPage="errorPage.jsp" %> in the first page that generates
ModuleNotFoundError: No module named 'buttons'
ModuleNotFoundError: No module named 'buttons'  Hi, My Python... 'buttons' How to remove the ModuleNotFoundError: No module named 'buttons... to install padas library. You can install buttons python with following command
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
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
jsp:forward tag usage and stntax
jsp:forward tag usage and stntax  jsp:forward tag usage and syntax with an example
jsp:forward - JSP-Servlet
jsp:forward  Hi, I want check one condition if it is true the only I have forward it io jsp. My code is like this but it is not working please help me out if(formobject.formbeanvarable.value==1) var temp
Forward a Jsp Page
Forward a Jsp Page In this example program we will show you how to use the <jsp:forward tag in your jsp program. The <jsp:forward tag is used to forward the request another resource on the same server. Browser never knows where
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
Disable of Combo - JSP-Servlet
Disable of Combo  Hi! Thanks for your fast reply. In my project i am giving grading facility to the user. Once user selected his grade in combo.... That means every user can give grade only at once... so i would like to disable
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
HTML custom buttons
HTML custom buttons  How can I make a form with custom buttons
3 RADIO BUTTONS
3 RADIO BUTTONS  3 RADIO BUTTONS USING ALSO ONE RADIO CLICKING HOW TO PROCESS OF NEXTPAGE
ModuleNotFoundError: No module named 'pytest-disable'
ModuleNotFoundError: No module named 'pytest-disable'  Hi, My... named 'pytest-disable' How to remove the ModuleNotFoundError: No module named 'pytest-disable' error? Thanks   Hi, In your python
disable the form - JSP-Servlet
disable the form  Hi All, I'm developing a small application. I wrote jsp page in that 8 forms are there.all forms are same but the input values... that particular button disable by using document.formname.buttonname.disable = true
JSP forward
JSP forward       This section illustrates you how you can use JSP forward action to forward to servlet. Create jsp Page: To create a jsp page,  following steps
ModuleNotFoundError: No module named 'tcp-forward'
ModuleNotFoundError: No module named 'tcp-forward'  Hi, My Python... 'tcp-forward' How to remove the ModuleNotFoundError: No module named 'tcp-forward' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'tcp-forward'
ModuleNotFoundError: No module named 'tcp-forward'  Hi, My Python... 'tcp-forward' How to remove the ModuleNotFoundError: No module named 'tcp-forward' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'Flask-Forward'
ModuleNotFoundError: No module named 'Flask-Forward'  Hi, My... 'Flask-Forward' How to remove the ModuleNotFoundError: No module named 'Flask-Forward' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'gpg-forward'
ModuleNotFoundError: No module named 'gpg-forward'  Hi, My Python... 'gpg-forward' How to remove the ModuleNotFoundError: No module named 'gpg-forward' error? Thanks   Hi, In your python environment
URL CODE OF BUTTONS
URL CODE OF BUTTONS   how to create a button tag, i need a details for creating a button tag with url code

Ads