请教下一个问题
别人给我出了一个题
<html>
<head>
<title> </title>
<SCRIPT LANGUAGE= 'JavaScript '>
right_browser=true;
width = screen.width;
height = screen.height;
</SCRIPT>
</head>
<body>
<table width= "100% " border= "0 " cellpadding= "0 " cellspacing= "1 " bgcolor= "#000000 ">
<tr>
<td bgcolor= "#FFFFFF "> width </td>
<td bgcolor= "#FFFFFF "> </td>
</tr>
<tr>
<td bgcolor= "#FFFFFF "> height </td>
</td>
</tr>
</table>
</body>
</html>
求width 和 height值
------解决方案-------------------- <html>
<head>
<title> </title>
<SCRIPT LANGUAGE= 'JavaScript '>
right_browser=true;
width = screen.width;
height = screen.height;
function show()
{
right_browser=true;
alert( 'width = ' +screen.width+ '\n '+ 'height = ' +screen.height);
}
</SCRIPT>
</head>
<body>
<table width= "100% " border= "0 " cellpadding= "0 " cellspacing= "1 " bgcolor= "#000000 ">
<tr>
<td bgcolor= "#FFFFFF "> <a href= "# " onClick= "show() "> 显示 </a> </script> </td>
<td bgcolor= "#FFFFFF "> </td>
</tr>
<tr>
<td bgcolor= "#FFFFFF "> height </td>
</td>
</tr>
</table>
</body>
</html>
显示出来就可以了