比如 a.htm b.htm 两个文件
a.htm 中只有一句
<script>window.open("b.htm","","");window.opener="";self.close();script>
b.htm 中写你上面那些内容,
a.htm 中只有一句
<script>window.open("b.htm","","");window.opener="";self.close();script>
b.htm 中写你上面那些内容,
解决方案 »
- file的onclick事件如何触发?
- 问个HTML标签操作问题
- 刷新以后如何让input表单元素中的值消失
- ext combo的value能在页面获得吗?
- 各位大侠帮帮我!!为啥加了个alert结果就不一样了
- iframe如何传递js变量到父页面并用dxx.write显示变量或动态读取HIDDEN文本框中的内容
- js如何判断一个框口(网址)正在打开中,如果已打开刚刷新打开的页面,如果没有打开,则链结打开。
- 简单传值问题
- 我想请问为什么在SCRIPT56.chm的参考手册里面找不到window,document等对象?
- 紧急求助,怎样确定在页面上点击表格的cell的行列数值,然后对所点击cell操作!!!
- 朋友们帮忙看一下,关于textarea的一个小问题
- 请教有关正则式的问题
下面还有个例子,共两个文件,index.aspx default.aspxindex.aspx内容如下
=======================================================================
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--
function CS(){
var ObjStr='<object id="Cls" classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 type=application/x-oleobject><param name="Command" value="CloseX"></object>'
document.body.insertAdjacentHTML("BeforeEnd",ObjStr)
if(parseInt(window.navigator.appVersion.split(";")[1].substr(5))>=6){
window.opener=''
self.close()
}
else Cls.Click()
}function MachakFull(Ie,other){
//Copyright ?1999 m.milicevic [email protected] [email protected]
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
window.open(other,"sub",'scrollbars=yes');
if (target >= 4){
if (navigator.appName=="Netscape"){
var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
MachakFull.moveTo(0,0);
MachakFull.resizeTo(x,y);}
if (navigator.appName=="Microsoft Internet Explorer")
window.open(Ie,"MachakFull","fullscreen=yes");
}
else window.open(other,"sub",'scrollbars=yes');
}
//-->
</script>
<body onload=setTimeout("CS()",3000);MachakFull('Default.aspx','Default.aspx')>
</body>
</html>=======================================================================
default.aspx 新打开的页面,已是全屏
·
我实验了你的方法
他说只有在HTML帮助中才能使用词功能
怎么回事呀,我应该怎么办????
如果必须是IE5.0,那我就没有办法了
<!--
var old=new Array();
function fullme(e){
if(typeof document.all!='undefined'){
if(top.document.body.offsetWidth==screen.availWidth){
baobao.Click(); //最大化->不是最大化
//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;
}
return true;
}
-->
</SCRIPT>
</HEAD>
<BODY background=images/lbg.gif bgColor=#ffffff onload=fullme(event)>
<object id=baobao classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Maximize">
</object>