如何在网页打开的时候把地址栏等去掉?

stonemusic 2002-10-08 10:02:51
我想实现的效果和用
window.open('main.asp','','width=650,height=420,scrollbars=no,resizable=yes');
打开的main.asp窗口一样。但我想直接打开main.asp就有上面的效果。怎么实现?
...全文
173 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
希默软件 2002-10-09
  • 打赏
  • 举报
回复
<SCRIPT language=Javascript1.2 type=text/javascript><!--
function addbookmark(){
alert("IE only")}
var mode=0
var old=new Array();
function fullme(e){
if(mode==0){
if(typeof document.all!='undefined'){
if(top.document.body.offsetWidth==screen.availWidth){
alert("信息提示:你的浏览器已被锁定视窗最大化,无法启用全屏模式!");
e.returnValue=false;
return false;
}
top.moveBy(e.clientX-e.screenX,e.clientY-e.screenY);
top.resizeBy(screen.availWidth-top.document.body.offsetWidth,
screen.availHeight-top.document.body.offsetHeight);
}else{
window.top.moveTo(0,0);
window.top.resizeTo(screen.availWidth,screen.availHeight);
old[0]=window.toolbar.visible;
old[1]=window.statusbar.visible;
old[2]=window.menubar.visible;
window.toolbar.visible=false;
window.statusbar.visible=false;
window.menubar.visible=false;
}
mode=1;
}else{
if(typeof document.all!='undefined'){
top.moveTo(0,0);
top.resizeTo(screen.availWidth,screen.availHeight);
}else{
window.toolbar.visible=old[0];
window.statusbar.visible=old[1];
window.menubar.visible=old[2];
}
mode=0;
}
return true;
}
--></SCRIPT>
<body onload=fullme(event)>
denghan 2002-10-09
  • 打赏
  • 举报
回复
你可以这样做,先用首页打开你想打开的无地址无标题栏等的窗口,然后再把这个首页窗口关闭。首页代码如下:
<html>
<head>
<title> Loading......</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META HTTP-EQUIV="refresh" CONTENT="10">
<link rel="stylesheet" href="style.css">
<script language='javascript'>
function test()
{min.Click();}
//--
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<OBJECT id="min" type='application/x-oleobject' classid='clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11'>
<param name='Command' value='Close'>
</object>
<script language='javascript'>
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#000000">');
document.write('<table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#FFFFFF">');
document.write('<tr><td align="center" valign="middle">');
document.write('<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>已经登录系统, 可以关闭此窗口...... </b></font>');
document.write('<br>(Logined,Please close this window...) </font>');
document.write(' </td></tr></table></td></tr></table>');
test();
window.open('你的页面.htm','','resizable=1,scrollbars=0,status=1,menubar=no,toolbar=no,location=no, menu=no');
</script>

</body>
</html>

孟子E章 2002-10-09
  • 打赏
  • 举报
回复
var a = window.open("","",'width=650,height=420,scrollbars=no,resizable=yes')
with(a.document)
{
open()
write("您的内容。。。。。。")
close()
}
baisun 2002-10-08
  • 打赏
  • 举报
回复
http://www.csdn.net/expert/topic/1065/1065988.xml?temp=.1665766

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧