当前位置: 代码迷 >> JavaScript >> window.open 参数,location在ff下不起作用,请问了!
  详细解决方案

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

热度:129   发布时间:2012-05-07 12:40:40.0
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搞不定,除非你修改浏览器的源码
  相关解决方案