#default#savehistory防止后退清空文本框

类别:编程语言 点击:0 评论:0 推荐:
function runEx(cod1) { cod=document.all(cod1) var code=cod.value; if (code!=""){ var newwin=window.open('','runcode',''); newwin.focus(); newwin.opener = null newwin.document.write(code); newwin.document.close(); } }

<HTML> <HEAD> <META NAME="save" CONTENT="history"> <STYLE> .saveHistory {behavior:url(#default#savehistory);} </STYLE> </HEAD> <BODY> <INPUT class=saveHistory type=text id=oPersistInput> <input type=button onclick='javascript:location.href="http://home.nuc.edu.cn/~arcow"' value='点击进入,再按后退键试试?'> </BODY> </HTML>

本文地址:http://com.8s8s.com/it/it26923.htm