会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Love
.NET Developer
博客园
首页
新随笔
联系
订阅
管理
公告
JS本页改变内容无后退
Posted on
2008-07-24 16:54
Love
阅读(
248
) 评论(
0
)
编辑
收藏
举报
<
html
>
<
head
>
<
meta
httpequiv
="
ContentType"
content
="text/html;
charset=utf8"
/>
<
script
>
function
createNewDoc()
{
var
newDoc
=
document.open(
"
text/html
"
,
"
replace
"
)
var
txt
=
"
<html><body>hello </body></html>
"
newDoc.write(txt)
newDoc.close()
}
</
script
>
</
head
>
<
body
>
<
input
type
="button"
value
="submit"
onClick
="createNewDoc()"
>
</
body
>
</
html
>
会员力量,点亮园子希望
刷新页面
返回顶部
Copyright © 2024 Love
Powered by .NET 8.0 on Kubernetes