能动态取input值吗? javascript:alert(eval(document.getElementById('insertimage').value)) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样可以了:<SCRIPT LANGUAGE="JavaScript"><!--function CreateInput(){alert(document.getElementById("insertimage").value);}//--></SCRIPT><input name="insertimage" id="insertimage" type="text" size="40" value="asd"> <input type="button" value="确定" onclick="CreateInput()"> <input name="insertimage" id="insertimage" type="text" size="40"> <input type="button" value="确定" onclick="javascript:alert(document.getElementById('insertimage').value);"> onclick事件如何写跳转到winform界面? extjs下拉框无法显示 mousedown延时怎么写? 如何下载文件时 用户是保存,还是取消下载。--用于积分管理(只有下载成功才能扣掉积分) js window.open前,可以先判断open过了,就不open吗? 如何判断页面已经开启 应该是小问题啦,如在不知道ID或Name的情况下何引用input 中的元素? 各位大哥请帮忙,急用! 高手请问在js里我如何用TXT保存数据然后读出数据?或则其他办法不用数据库 网页能否用条件控制按钮的显示或隐藏 js 如何实现页面的切换 javascript 关于自动获取焦点的问题 (急)
<!--
function CreateInput()
{
alert(document.getElementById("insertimage").value);
}
//-->
</SCRIPT>
<input name="insertimage" id="insertimage" type="text" size="40" value="asd"> <input type="button" value="确定" onclick="CreateInput()">
<input name="insertimage" id="insertimage" type="text" size="40"> <input type="button" value="确定" onclick="javascript:alert(document.getElementById('insertimage').value);">