Assume I have a html from, and it contain some submit type. I want to create a "are you sure" popup window that will appear when user click submit button. My question is that is there any way to create it by using "only" html, not using javascript or any other?
Scenario that could work without javascript:
This would be completely Javascript free, but it would require several postbacks.
This kind of thing is usually done on the client with a Javascript confirm()
function (here's a simple example) or lately with a more user friendly modal dialog provided by many different client libraries or their plugins.
If you know your clients are going to be very basic ones (ie. vast majority of your users will access your application using clients like Opera Mini that's not able to run scripts at all). But in all other cases it's much better to do this using Javascript. It will be faster, easier to develop and much more user friendly. Not to mention that it will put less strain on your server as well since certain parts will execute on the client without the need of any server processing.