提供第一个HTML的Sample,第二个HTML因为机密原因不能提供,只要打开带有Applet的HTML就有上面的问题。<html> <head> <SCRIPT> function newWindow() { // bug: the return value is saved to a variable var myURL= window.open("XXXX.htm", "", ""); } </SCRIPT> </head> <body> <form> <input type= "text" value=""><br> <input type="button" value="Click me" onclick= newWindow();> </form> </body> </html>
<head>
<SCRIPT>
function newWindow()
{
// bug: the return value is saved to a variable
var myURL= window.open("XXXX.htm", "", "");
}
</SCRIPT>
</head>
<body>
<form>
<input type= "text" value=""><br>
<input type="button" value="Click me" onclick= newWindow();>
</form>
</body>
</html>