Javascript Confirm, A Simple Approach
Javascript Confirm, A Simple Approach
Just a simple javascript confirmation dialogue box. This is very essential when it comes to a webpage where there is a edit or delete option.
If the user is not ready to move forward then they can stay in the same page. Here is the script.
<a href="JavaScript:if(confirm('Are you ready to go to the next page?')==true){window.location='nextpage.html';}">Move To Next Page</a>
The above script is basically a hyperlink where it will confirm with the user whether they are ready to go to the next page or they need to stay back in the same page itself.
ie If they press YES in the confirmation box then they will move to the next page. Otherwise they will stay in the same page.