dcsimg
disabling browser back button
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   abhishek_shukla
Posted On:   Tuesday, September 8, 2009 03:48 PM

IBM window.onunload = unloadPage; function unloadPage() { document.FrmLog.action="SN_LogoutDisp.jsp"; document.FrmLog.submit(); } ]]>]]> if (window.mm_menu_0720234212_0) return; window.mm_menu_0720234212_0 = new Menu("root",83,18,"",12,"#000000","#000000","#FFFFFF","left","middle",3,0,1000,-5,7,true,false,true,0,true,true); mm_menu_0720234212_0.addMenuItem("New item"); mm_menu_0720234212_0.fontWeight="bold"; mm_menu_0720234212_0.hideOnMouseOut=true; mm_menu_0720234212_0.bgColor='#FF9F00' mm_menu_0720234212_0.menuBorder=1; mm_menu_0720234212_0.menuLiteBgColor='#FF9F00' mm_menu_0720234212_0.menuBorderBgColor='#FF9F00' mm_menu_0720234212_0.writeMenus()   More>>
IBM

Dear Friends,

This is my first post in this forum.
I need ur help, i want to disable my browser back button or i want to redirect the user on the same page if he clicks on the back button .I want this so that no user can submit a data twice and also if he logs out no one get back by pressing back or forward button .



Some of the i tried are as under:

1.

but this is not working.

2. <%
response.setHeader("Pragma","no-cache");
response.setHeader("Cache-Control","no-store");
response.setHeader("Expires","0");
response.setDateHeader("Expires",-1);
%>
not working.

3.


not working.

Here is my code:
**************************************************************************************************************************************************************************************************************************











































Home News About us Logout Faqs Site Map Contact Us  














Administrator







 


 































New User Creation
Name:


Login ID:
Password:
Confirm Password:
Designation:





 


 




 


 































Create New Course
Course Name:


Course Fee :
Course Duration in Days :
Course Description :
Course Fee Valid From :


 





 


 




 


 































Modify Course
Course Name:


Course Fee :
Course Duration in Days :
Course Description :
Course Fee Valid From :


 





 


 















f f f


Search Inquiries Search Fianance Info Search Joinings

 



























                   








************************************************************************************************************************************************************************************************************************** ]]>    <<Less
About | Sitemap | Contact