 |
Refer Listing To A Friend |
|
|
 |
SUGGEST Cross-browser alternative for javascript prompt TO A FRIEND...
If you have a friend that you would like to recommend this page to,
or if you just want to send yourself a reminder, here is the easy
way to do it!
Simply fill in the e-mail address of the person(s) you wish to tell
about Cross-browser alternative for javascript prompt, your name and e-mail address (so they do
not think it is spam and can reply to you directly with gracious thanks),
and click the SEND button.
If you want to, you can also enter a message that will be included
on the e-mail.
After sending the e-mail, you will be transported back to the
page you recommended!
| Resource Title: |
Cross-browser alternative for javascript prompt |
| URL: | [CLICK HERE] |
| Description: |
In yet another sly move by Micro$oft, MSIE 7 has been designed to suppress the javascript prompt function, yet at the same time always allow their MSIE-specific showModalDialog method. This has broken millions of web sites. The work-arounds to this problem are any of these:
1. Use the showModalDialog method instead and thereby only support MSIE browsers (they wish).
2. Do away with using prompt dialogs completely.
3. Use simulated modal dialogs with layer's and key capturing (complicated and messy).
4. Use a class such as this to that mimics the javascript prompt function for MSIE 7 and up by using showModalDialog().
Usage:
Place the files Prompt.js, Prompt.html, and Prompt.png together into any directory in your site.
Do not rename any of the files or else it won't work. Place this line in the head section of your html:
<script type="text/javascript" src="/path/to/Prompt.js"& gt; </script>
Example:
var name = Prompt.show('Who are you?');
| |
|
|
|
 |
|