This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE 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

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 + '/';


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 + '/';

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