CSDN博客

img denal

点击后保存web page 和 点击后打印、属性、源吗

发表于2003/2/25 17:37:00  1043人阅读

<input type="button" name="Button" value="点这保存这页面" onClick="document.all.WebBrowser.ExecWB(4,1)">
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (window.print) {
document.write('<form>不在忘记'
+ '<input type=button name=print value="打印" '
+ 'onClick="javascript:window.print()">本页!</form>');
}
// End -->
</script>

<input type="button" name="Button" value="点击查看页面属性" onClick="document.all.WebBrowser.ExecWB(10,1) ">
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>

<FORM>
<INPUT TYPE="BUTTON" VALUE="查看本页源代码" onClick= 'window.location = "view-source:" + window.location.href'>
</form>

 

 

0 0

相关博文

我的热门文章

img
取 消
img