I would like to prompt the user for some input on a webpage.
I can't use the builtin Javascript prompt function as it is creates security warnings in IE.
Is there a best practice/method/example that people use to recreate this?
The Javascript would need to be embedded in the page, so I'm looking at avoiding weighty external libraries.
The easiest, most user-friendly approach would probably be to create a normal HTML form that you show with JavaScript in response to a click event on a link or button; you'd then hide the form after the data has been submitted.
I'd steer away from prompts; they're obtrusive. You could render a form.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With