i have a requirement to show javascript Ok/Cancel option on page load. So, when the user is redirected from the previous page to this page, based on some logic in the query string, we have to display javascript OK/Cancel (page is not yet rendered here). Once the user clicks, we have to load different type of data (server side execution) based on OK/Cancel. what is the best way of accomplishing this task? thanks.
Share
Ignoring the various problems with this requirement, here’s the simplest approach that I can think of.
Execute the following in Javascript:
confirm()to determine the course of actionYour
<noscript>element should contain directions on what a user who has javascript disabled should do… something more helpful than ‘Please enable javascript‘ would be nice, but it’s your call.