Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How Can I Detect The Mobile Back Press Event To Call Previous form Action  RSS feed

 
Shrutiyadavyadav yadav
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working in a company and my company website is work properly on desktop but in mobile(develop in java), when user press back button( touch phone) , page redirect to the previous page but page not loaded and wait page is not come. and when go to next page again , previous selected choice are filled. I have also used the meta command to clear cache(<META HTTP-EQUIV="expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Refresh" CONTENT="0">) but not working in mobile.So i have to call the these action......

var contextPath = document.getElementById("contextPath").value;

form.action= contextPath + '/getTgp.do?processAction=ItinerarySearch';

form.submit();


when user press back button in mobile. and how can i detect automatic back press event on mobile which can be used for redirect to

form.action= contextPath + '/getTgp.do?processAction=ItinerarySearch';

this page.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!