window.prompt("欢迎您的入库!!","请在此输入您的密码。")怎样隐藏密码,在线等急!!!! i want to know too 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用 window.open 开新窗 做表单 没见过!!!建议采用 mrshelly(Shelly) 的Idea main.htm<html><head><script language=javascript><!--/*@cc_on @*//*@if (@_win32 && @_jscript_version>=5)function window.prompt(obj,str1){ obj.value=window.showModalDialog("prompt.htm",str1,"status:no;dialogHeight:40px;dialogWidth: 300px;edge: Raised; center: Yes; help: No; resizable: no; status: No;scroll:no");}@end @*///alert(confirm('sure?'));//window.prompt("请输入密码11:");// --></script></head><body><input type="text" id="txtPwd" onclick='javascript:window.prompt(this,"请输入密码:");'></body></html>//prompt.htm<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>Untitled Document</title><style type="text/css">body{background-color: buttonface;font-size:15px;}</style><script language="JavaScript"><!--document.title="prompt";var str = window.dialogArguments;function doCancel(){ window.returnValue=""; window.close();}function doSure(){ if(txtPwd.value==""){ alert("密码不能为空!"); txtPwd.focus(); return; } window.returnValue=txtPwd.value; window.close();}window.onblur=function (){txtPwd.focus();}//--></script></head><body><script language="JavaScript"><!--document.write(str);//--></script><input type="password" id="txtPwd" style="width:100% " value=""><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right"> <input type="button" onclick="doCancel()" value="取消"> <input type="button" onclick="doSure()" value="确定"> </td> </tr></table></body></html> 这样做的话是不是 新生成了一个 request呢 鼠标移动型不能保持 浏览器中两个标签页能否相互影响? 关于导航栏防刷新的,高手请进…… IE下JavaScript数组问题 IE地址栏下拉框里的url如何改成文字? js怎样把一个值传给Action? 请问javascript有没有返回参数? 急急急急急急!如何在浏览器里不直接打开EXCEL,而是提示保存? 新手求教 jqueryeasyui tabs滚动条问题 急,怎样得到选择的ID数。JS 如何得知一个 HTML 元素出现了滚动条?
建议采用 mrshelly(Shelly) 的Idea
<html>
<head>
<script language=javascript>
<!--
/*@cc_on @*/
/*@if (@_win32 && @_jscript_version>=5)
function window.prompt(obj,str1)
{
obj.value=window.showModalDialog("prompt.htm",str1,"status:no;dialogHeight:40px;dialogWidth: 300px;edge: Raised; center: Yes; help: No; resizable: no; status: No;scroll:no");
}
@end @*/
//alert(confirm('sure?'));
//window.prompt("请输入密码11:");
// -->
</script></head>
<body>
<input type="text" id="txtPwd" onclick='javascript:window.prompt(this,"请输入密码:");'>
</body>
</html>
//prompt.htm
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Untitled Document</title>
<style type="text/css">
body{background-color: buttonface;font-size:15px;}
</style>
<script language="JavaScript">
<!--
document.title="prompt";
var str = window.dialogArguments;
function doCancel(){
window.returnValue="";
window.close();
}
function doSure(){
if(txtPwd.value==""){
alert("密码不能为空!");
txtPwd.focus();
return;
}
window.returnValue=txtPwd.value;
window.close();
}
window.onblur=function (){txtPwd.focus();}
//-->
</script>
</head><body>
<script language="JavaScript">
<!--
document.write(str);
//-->
</script>
<input type="password" id="txtPwd" style="width:100% " value="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="right">
<input type="button" onclick="doCancel()" value="取消">
<input type="button" onclick="doSure()" value="确定">
</td>
</tr>
</table>
</body>
</html>
是不是 新生成了一个 request呢