Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Interview-Questions disable backward and forward buttons of the browsers

Have Programming Question? Ask it here!
 
 
 


Fathi
disable backward and forward buttons of the browsers
5 Answer(s)      4 years and 10 months ago
Posted in : JSP-Interview Questions



Advertisement
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
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
uikeyboard disable return key
uikeyboard disable return key  uikeyboard - hot to disable return key
enable disable checkbox in javascript
enable disable checkbox in javascript  How to enable disable checkbox in javascript
How to disable an HTML object?
How to disable an HTML object?  How to disable an HTML object
which tags work on which browsers
which tags work on which browsers  Is there a site that shows which tags work on which browsers
Java Enabled browsers
Java Enabled browsers      ... java enabled. Mostly used java enabled web browsers are Internet Explorer ... java enabled or not. Most of the currently using browsers are java enabled
JSP Forward action
JSP Forward action  Jsp forward action tag examples
Disable UITableView Scrolling
Disable UITableView Scrolling   How to disable the UITableView Scrolling either programmatically or in XIB
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
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
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
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: <jsp:forward page="{relativeURL | <%= expression %>}" /> <jsp:forward
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
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
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 the exception
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
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
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-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
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
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
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
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
jsp:forward tag usage and stntax
jsp:forward tag usage and stntax  jsp:forward tag usage and syntax with an example
multiple browsers in java script - JSP-Servlet
multiple browsers in java script  How to make my jsp browser specific?  Hi friend, For solving the problem visit to : http://www.roseindia.net/jsp/simple-jsp-example/JSPPlugins.shtml Thanks
add Buttons in JavaScript
add Buttons in JavaScript  How to add Buttons in JavaScript
browsers full screen without toll bar
browsers full screen without toll bar  hi , i want to full screen mode of my browser without toll bar and address bar i have already trial below code , its just enlarge screen without all other option window.open('screen.jsp
uinavigationcontroller add multiple buttons
uinavigationcontroller add multiple buttons  How to add multiple buttons to the UINavigationController
Passing parameters in JSP using forward.
Passing parameters in JSP using forward.  If a page is forwarded to another page using jsp:forward, is it necessary that the page should be already............   Pass Parameters using jsp:forward
Radio Buttons
Java: Radio Buttons Radio buttons (javax.swing.JRadioButton.... The example below produced this image. A radio button group starts with all buttons... radio buttons, puts them in a grid layout on a panel, and puts a titled
how send nsnotification to forward class
how send nsnotification to forward class   how to send nsnotification to a forward class? i am sending a nsnotification to a class which is not loaded yet. example,there is a class A,where i am creating a dictionary and posting
j2me- forward a video - Java Beginners
j2me- forward a video  hi friends, i have play a video using J2ME. but, i have unable to forward a video. does anybody know about it?? please help me.. thanks, regards, sakthi  Hi Friend, Please
HTML custom buttons
HTML custom buttons  How can I make a form with custom buttons
How to Disable Catch-all Emails on CPanel
How to Disable Catch-all Emails on CPanel  Hi, How to disable catch all emails setting on CPanel? Thanks
How to disable task manager using java
How to disable task manager using java  How to disable task manager using java
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
disable back button - Java Beginners
disable back button  I wanted the code for disabling back button in my application(The scenario is like when im in my register user page and try to login using the login pop up window, i get logged in and user name is also
Disable offline browser access - Security
Disable offline browser access    Hi Please help me to solve the issue, I have been trying my level best to find the solution for disabling the offline browser issue for the security purpose. But so far I don't find any
labels,textfields,buttons
labels,textfields,buttons  how to set the labels,textfields,buttons at certain positions such that we can add them without layout managers? my program is to design a login page with image and these labels at exact positions
Struts ForwardAction vs Forward tag in jsp - Struts
Struts ForwardAction vs Forward tag in jsp  difference between struts ForwardAction class and Forward tag in jsp
 

 

 

DMCA.com