Javascript Prompt: best practice?

javascript

Solution

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.

Problem

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.

Original source