写个input 按钮,然后点击显示当前屏幕宽度 没效果。这是为啥
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>屏幕分辨率的高和宽</title>
</head>
<body>
<script type="text/javascript">
var hs
function sets(){
hs=screen.width+"*"+screen.height;
document.getElementById("ss").value=hs;
}
</script>
<form>
<input type="text" id="ss" />
<input type="button" value="yes" onclick="sets()" /></form>
</body>
</html>
document.write(screen.height);