<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table border="0" cellspacing="5" cellpadding="5">
<tr><th><input type="button" οnclick="javascript:main1()" value="ok"></th></tr>
<tr><td></td></tr>
</table>
<script type="text/javascript" charset="utf-8">
function main1(){
alert(document.innerHTML);
}
</script>
</body>
</html>
测试过了,看来不行,嘿嘿。。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<table border="0" cellspacing="5" cellpadding="5">
<tr><th><input type="button" οnclick="javascript:main1()" value="ok"></th></tr>
<tr><td></td></tr>
</table>
<script type="text/javascript" charset="utf-8">
function main1(){
alert(document.innerHTML);
}
</script>
</body>
</html>
测试过了,看来不行,嘿嘿。。