路人女主 学姐官方本:网页高手请回答我

来源:百度文库 编辑:高校问答 时间:2024/04/28 18:52:24
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body><input type="BUTTON" name="FullScreen" value="全屏显示" onClick="window.open(document.location, www.sohu.com', 'fullscreen')">

</body>
</html>
这段代码,为什么在点了’全屏显示‘的按钮后状态栏会显示网页上有错误,然后一点反应都没有
'www.sohu.com'代码是这样的,我打错了

window.open 用法错了
onClick="window.open('www.sohu.com','', 'fullscreen=1')"

网页设置错误,少了一个'号.

晕!!!是不是木马的代码啊~!
闪人 怕刺眼