首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

window.open 参数,location在ff下不起作用,请问了!

2012-05-07 
window.open 参数,location在ff下不起作用,请教了!!window.open 参数,location在ff下不起作用,请教了!!明

window.open 参数,location在ff下不起作用,请教了!!
window.open 参数,location在ff下不起作用,请教了!!
明明设置了location=no,可是地址栏还是会出现

代码:
<!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=utf-8" />
<title>无标题文档</title>
<script type="text/javascript">
function open_win()
{
window.open("http://baidu.com","_blank","fullscreen=yes,toolbar=no, location=yes, status=no")
}
</script>
</head>

<body>

<input type="button" value="打开窗口" onclick="open_win()">
   
</body>
</html>


[解决办法]
好多标签式的浏览器都这样的,这个参数根本不起作用,地址栏隐藏不了
比如FF,IE7,IE8,TT。。。。
[解决办法]
只能ie6隐藏地址栏,其余的用js搞不定,除非你修改浏览器的源码

热点排行