Web Page Input

In the old days, a web page could get user input with JavaScript's prompt command.  But the IE7 browser disabled such prompts for security reasons.  This page outlines a work-around.

1. Download IEprompt.js

2. Store the script with your web pages.

3. Use the following code to enable the IEprompt script, using the appropriate pathname.

<script type='text/javascript' src="IEprompt.js"></script>

4. Create a "Click Here" link in the body that will invoke the prompt dialog box.

 <A HREF="#" class="popup" 
    onclick="IEprompt('Enter value: ','default'); return false;">
  Click Here
  </A>

5. Enter your code to be called when the user is finished in a function named promptCallback.  Here is an example.

<script>
function promptCallback(val)
{
  alert(val);
}
</script>

The user's value will be sent as the variable val to promptCallback (with "" and null being possibilities).