1、父页是显示标题,弹出页修改标题提交后,父页更新:
<script language=javascript>
function winclose() {
window.opener.location.reload();//刷新
window.close();//关闭
}
</script>
<input type=button name=close value="关闭" onclick=winclose()>
<script language=javascript>
function winclose() {
window.opener.location.reload();//刷新
window.close();//关闭
}
</script>
<input type=button name=close value="关闭" onclick=winclose()>
2、单击返回
<a href=javascript:history.back()><span style="text-decoration: none">返回</span></a>
3、
<a href=javascript:history.back()><span style="text-decoration: none">返回</span></a>
3、
5 秒后弹窗一个的代码
<script language='javascript'>
var sVarPopWin=true;
function PlayJsAdPopWin()
{
if( sVarPopWin )
{
popwin=window.open("您需要弹的网站地址","","height=300, width=360");
}
}
setTimeout("PlayJsAdPopWin()", 16000 );
</script>
上面的代码中有一句
popwin=window.open("您需要弹的网站地址","","height=300, width=360");
后面的 height=300, width=360 是您需要弹出的页面大小。
如果您想直接弹出网页可以用下面的代码。
<script language='javascript'>
var sVarPopWin=true;
function PlayJsAdPopWin()
{
if( sVarPopWin )
{
popwin=window.open("您需要弹的网站地址","");
}
}
setTimeout("PlayJsAdPopWin()", 16000 );
</script>
<script language='javascript'>
var sVarPopWin=true;
function PlayJsAdPopWin()
{
if( sVarPopWin )
{
popwin=window.open("您需要弹的网站地址","","height=300, width=360");
}
}
setTimeout("PlayJsAdPopWin()", 16000 );
</script>
上面的代码中有一句
popwin=window.open("您需要弹的网站地址","","height=300, width=360");
后面的 height=300, width=360 是您需要弹出的页面大小。
如果您想直接弹出网页可以用下面的代码。
<script language='javascript'>
var sVarPopWin=true;
function PlayJsAdPopWin()
{
if( sVarPopWin )
{
popwin=window.open("您需要弹的网站地址","");
}
}
setTimeout("PlayJsAdPopWin()", 16000 );
</script>