• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Javascript Help - Warning your leaving the page

Javascript Help - Warning your leaving the page 11 years 7 months ago #25037

  • nebb00
  • nebb00's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hey people

Wonder if anyone could give me a hand please.

I can use a simple javascript in RSformsPro to warn the user they are about to leave the page if they leave the page without submitting the form using;

<script type="text/javascript">
window.onbeforeunload = function(e) {
return 'Warning! Are you sure you want to leave this page?.';
};
</script>

The problem is that when hitting on the submit button, it also warns you are leaving the page. Does anyone know how to put in an exempt for the form submission?

Thanks
Ben
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!