window.external 常见的操作

本文介绍了一系列实用的网页操作技巧及文档交互方法,包括收藏夹管理、历史浏览控制、文档命令执行等,帮助读者更好地掌握浏览器使用技巧。

 

<INPUT onclick='window.external.ImportExportFavorites(true,"http://localhost");'type=buttonvalue=导入收藏夹>   
<INPUT onclick='window.external.ImportExportFavorites(false,"http://localhost");'type=buttonvalue=导出收藏夹>   
<INPUT onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)"type=buttonvalue=整理收藏夹>   
<INPUT onclick="window.external.ShowBrowserUI('语言Dialog', null)"type=buttonvalue=语言设置>   
<INPUT onclick="window.external.AddFavorite('http://blog.youkuaiyun.com/Opossum/', '研究,研讨')"type=buttonvalue=加入收藏夹>   
<INPUT onclick="window.external.addChannel('http://blog.youkuaiyun.com/Opossum/')"type=buttonvalue=加入到频道>     

有联系:  
<INPUT onclick="the.style.behavior='url(#default#habitatpage)'; the.setHomePage('http://blog.youkuaiyun.com/Opossum/')"type=buttonvalue=设成主页>  

history...  

<INPUT onclick=history.go(1) type=buttonvalue=前进>  
<INPUT onclick=history.go(-1) type=buttonvalue=后退>   <INPUTonclick=history.forward() type=buttonvalue=前进>  
<INPUT onclick=history.behind() type=buttonvalue=后退>  

document.execCommand...  

<INPUT onclick="document.execCommand('Cut')"type=buttonvalue=剪切>  
<INPUT onclick="document.execCommand('Copy')"type=buttonvalue=拷贝>  
<INPUT onclick="document.execCommand('Paste')"type=buttonvalue=粘贴>   
<INPUT onclick="document.execCommand('Undo')"type=buttonvalue=撤消>  
<INPUT onclick="document.execCommand('Delete')"type=buttonvalue=删除>   
<INPUT onclick="document.execCommand('Bold')"type=buttonvalue=黑体>  
<INPUT onclick="document.execCommand('Italic')"type=buttonvalue=斜体>  
<INPUT onclick="document.execCommand('Underline')"type=buttonvalue=下划线>  
<INPUT onclick="document.execCommand('stop')"type=buttonvalue=停止>  
<INPUT onclick="document.execCommand('SaveAs')"type=buttonvalue=保存>  
<INPUT onclick="document.execCommand('Saveas',false,'c:\\test.htm')"type=buttonvalue=另存为>   
<INPUT onclick="document.execCommand('FontName',false,fn)"type=buttonvalue=字体>   
<INPUT onclick="document.execCommand('FontSize',false,fs)"type=buttonvalue=字体大小>   
<INPUT onclick="document.execCommand('refresh',false,0)"type=buttonvalue=刷新>   

window.location...  

<INPUT onclick=window.location.reload() type=buttonvalue=刷新 title=refresh>   
<INPUT onclick='window.location="view-source:" + window.location.href'type=buttonvalue=查看源文档 title=Button7>   

WebBrowser.ExecWB...  

<OBJECTclassid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0id=WebBrowserwidth=0></OBJECT><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(2,1) type=buttonvalue=关闭所有><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(4,1) type=buttonvalue=另存为><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(6,1) type=buttonvalue=打印><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(6,6) type=buttonvalue=直接打印><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(7,1) type=buttonvalue=打印预览><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(8,1) type=buttonvalue=PAGE设置><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(10,1) type=buttonvalue=属性><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(17,1) type=buttonvalue=全选><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(22,1) type=buttonvalue=刷新><br/>  
<inpu ttitle=ButtononClick=document.all.WebBrowser.ExecWB(45,1) type=buttonvalue=关闭>  
************** 异常文本 ************** System.InvalidOperationException: There are 8 event handlers that triggers on property 'Items' on nodes of type 'Spotfire.Dxp.Data.DataColumnCollection' in a subtree spanned by a node of type 'Spotfire.Dxp.Data.DataTableCollection' which has not been torn down. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. External event handler on a node of type 'Spotfire.Dxp.Forms.Data.DataProperties.DataPropertiesDialog' with method name 'UpdatePropertiesGridView'. 在 Spotfire.Dxp.Framework.DocumentModel.Triggers`1.ValidateNoEventTriggers(DocumentNode node, EventListenerToString`1 eventListenerToString) 在 Spotfire.Dxp.Framework.DocumentModel.EventTriggers.ValidateNoEventTriggers(DocumentNode node) 在 Spotfire.Dxp.Framework.DocumentModel.State.DetachedDocumentNodeState.ValidateNoEventTriggers(DocumentNode documentNode) 在 Spotfire.Dxp.Framework.DocumentModel.DocumentNode.DisposeDocumentNode() 在 Spotfire.Dxp.Framework.DocumentModel.Node.Dispose() 在 Spotfire.Dxp.Framework.DocumentModel.State.NodeState.<>c__DisplayClass92_0.<ForEachManagedChild>b__0(IDocumentNodeChild documentNodeChild) 在 Spotfire.Dxp.Framework.DocumentModel.State.NodeState.ForEachChild(List`1 children, Action`1 action) 在 Spotfire.Dxp.Framework.DocumentModel.Node.Dispose() 在 Spotfire.Dxp.Framework.DocumentModel.State.NodeState.<>c__DisplayClass92_0.<ForEachManagedChild>b__0(IDocumentNodeChild documentNodeChild) 在 Spotfire.Dxp.Framework.DocumentModel.State.NodeState.ForEachChild(List`1 children, Action`1 action) 在 Spotfire.Dxp.Framework.DocumentModel.Node.Dispose() 在 Spotfire.Dxp.Framework.DocumentModel.DocumentManager`1.DisposeDocument() 在 Spotfire.Dxp.Framework.DocumentModel.DocumentManager`1.Dispose() 在 Spotfire.Dxp.Application.AnalysisApplication.CloseDocument() 在 Spotfire.Dxp.Forms.MainForm.OnFormClosing(FormClosingEventArgs e) 在 System.Windows.Forms.Form.WmClose(Message& m) 在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
最新发布
10-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值