I want the below question to work for all major browser Opera, Internet Explorer, Chrome, Safari and Firefox
I want to create an application where the user has to follow an order of pages Text1.php, Text2.php, Text3.php
in order to fully able to create an exam.
Problem is that at anytime the user can click on the back
or forward
browser buttons or access another page by entering in the page url.
So my question is this:
If user clicks on
back
orforward
browser buttons, it will display a prompt box or little window stating that:You are not suppose to leave this page when creating an assessment, if you want to leave the page then you will sent back to the "Menu" page and lose all you details for this exam. Click on this link below:
Leave Assessment
If you want to contine with creating the current assessment then please click on the link below:
Continue Assessment
If user is on either of Assessment creating pages
Text1.php, Text2.php OR Text3.php
and the user tries to change web address in url to access another page then the same window or prompt box or above will be displayed.
My question is that is this possible where if the box is shown when url or browser buttons are used and then be able to stay on current page if user clicks on Continue Assessment
or navigate to menu.php
if user clicks on Leave Assessment
link. Can somebody provide a sample on how this can be achieved? I need it working in all the major browsers.
Thanks