Workaround:
To work around this problem, create your own prompt dialog, Prompt.htm. (Note that you will have to change the charset based on the language that you are targeting.)
<HTML>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis">
<TITLE>HTML Sample</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function SbmtF()
{
window.returnValue=document.InputForm.UserName.value;
window.close();
}
</SCRIPT>
<BODY>
<FORM NAME="InputForm">
<INPUT TYPE="text" NAME="UserName">
<INPUT TYPE="button" NAME="btnSubmit" value="OK" onClick="SbmtF();">
</FORM>
</BODY>
</HTML>
The following is an example of how the preceding page can be used:
<HTML>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=x-sjis">
<TITLE>HTML Sample</TITLE>
<Script Language="JavaScript">
function btnConstant()
{
Title1 = "� ";
strLink = Title1 + ">>Added String<<";
document.FM1.Text1.value = strLink;
}
function btnAddLink_onclick()
{
Title1 = showModalDialog("prompt.htm");
strLink = Title1 + ">>Added String<<";
document.FM1.Text2.value = strLink;
}
</Script>
<BODY>
<FORM name=FM1>
<INPUT type="Text" size=80 value="" id=Text1 name=TextBox1>
<INPUT type="button" value="Constant" id=btnAddLink name=btnAddLnk onClick=btnConstant()><P>
<INPUT type="Text" size=80 value="" id=Text2 name=TextBox2>
<INPUT type="button" value="Prompt" id=btnAddLink name=btnAddLnk onClick=btnAddLink_onclick()><P>
</FORM>
</BODY>
</HTML>