参考
http://msdn.microsoft.com/workshop/author/persistence/overview.asp
http://msdn.microsoft.com/workshop/author/persistence/overview.asp
解决方案 »
- 关于将网页设为主页的问题,请高手赐教
- jHtmlArea 0.7.0 中同一个函数,请问为什么调用参数的个数不同?
- 如何判断store中的某列为空时 不能提交form?
- 论坛开发数据库分析(BbsDatabaseAnalysis)
- 请问一个有关cookie读取的问题
- 如何获取table的大小
- 急问,如何在关闭浏览器同时执行一个事件,不用onunload?
- 主问vml中group中的矩形长度在屏幕上有多长
- 如何让另一个页面中的某函数运行?
- 按鼠标右键的时候,可以先执行object的onmousedown;然后在执行document_oncontextmenu()
- 晕死,JAVASCRIPT还有忌讳??? 八月犯忌!!!???
- 菜鸟提问 关于 注册页面中一些功能的实现 长时间在线 成功就结案给分
///////////////////////////////////////////////////////////
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>
<head>
<title>Untitled</title>
<Script language="javascript">
<!--
function fncSource()
{
document.write(document.documentElement.outerHTML);
}
//-->
</Script>
</head>
<body>
<input type="button" name="save" value='save' onclick="document.execCommand('Saveas',false,'c:\\test.html')">
<input type="text" name="txt" value='' onBlur="fncSource()">
</body>
</html>
//////////////////////////////////////////////////////////////////////
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>
<head>
<title>Untitled</title>
<Script language="javascript">
<!--
function fncSource()
{
if (document.all.hdn.value==1)
{
document.write(document.documentElement.outerHTML);
}
document.execCommand('Saveas',true,'c:\\test.htm');
document.all.hdn.value="2";
}
//-->
</Script>
</head>
<body>
<input type="button" name="save" value='save' onclick="fncSource()">
<input type="text" name="txt" value=''>
<input type="hidden" name="hdn" value=''>
</body>
</html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<script>
function savefile(){ //保存文件函数
var contentstr=document.documentElement.outerHTML
savepage.document.clear();
savepage.document.open();
savepage.document.write(contentstr);
savepage.document.execCommand('SaveAs',false,"a.htm");
savepage.document.clear();
savepage.document.close()
}
</script></head><body><form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<p><input type="text" name="T1" size="20"><input type="button" value="保存当前页面" name="B1" onclick="savefile();"><input type="reset" value="全部重写" name="B2"></p>
</form>
<iframe id=savepage src="about:blank" style="display:none"></iframe> <!--实现保存-->
</body></html>
<input type="hidden" name="hdn" value=''>
改成:
<input type="hidden" name="hdn" value="1">