Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>函数接收参数并弹出</title>
<style>
body{font:12px/1.5 Tahoma;text-align:center;}
code,input,button{font-family:inherit;}
input{border:1px solid #ccc;padding:3px;}
button{cursor:pointer;}
</style>
<script>
var myFn = function(a, b)
{
alert(a.value);
alert(b.value)
};
window.onload = function ()
var oInput = document.getElementsByTagName("input");
var oBtn = document.getElementsByTagName("button")[0];
oBtn.onclick = function()
myFn(oInput[0],oInput[1])
}
</script>
</head>
<body>
<p><input type="text" value="手册网" /></p>
<p><input type="text" value="开源源码下载" /></p>
<p><button>点此传递参数</button></p>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx