PRO_plugin

var plugin = PRO_plugin(@name); returns: object of a plugin Methods: 1) registerContextMenu(name, func) name: menu item name func: prototype foo(tabId, url) Special case: registerContextMenu("separator"); add a separator in menu 2) setContextMenuState(name, state); Change the state of context menu item. name: menu item name state: grayed, checked or their combination 'grayed;checked' 3) setStatusInfo(imgurl, text, tip, [tabId]) imgurl: image shown in status bar, must be local images, e.g., ie7pro://pluginpath/images/foo.png text: text shown in status bar tip: tips shown for the plugin tabId: a parameter from handlePageChange/handleTabCreate 4) setStatusIcon(imgurl, [tabId]) imgurl: image shown in status bar, must be local images, e.g., ie7pro://pluginpath/images/foo.png tabId: a parameter from handlePageChange/handleTabCreate 5) setStatusText(text, [tabId]) text: text shown in status bar tabId: a parameter from handlePageChange/handleTabCreate 6) setStatusTip(tip, [tabId]) tip: tips shown for the plugin tabId: a parameter from handlePageChange/handleTabCreate 7) popupWindow(url, [arguments], [features], [tabId]) url: window location url. arguments: Optional. Variant that specifies the arguments to use when displaying the document. Use this parameter to pass a value of any type, including an array of values. The dialog box can extract the values passed by the caller from the dialogArguments property of the window object. features: Optional. String that specifies the window ornaments for the dialog box, using one or more of the following semicolon-delimited values: dialogHeight:sHeight Sets the height of the dialog window (see Remarks for default unit of measure). dialogLeft:sXPos Sets the left position of the dialog window relative to the upper-left corner of the desktop. dialogTop:sYPos Sets the top position of the dialog window relative to the upper-left corner of the desktop. dialogWidth:sWidth Sets the width of the dialog window resizable:{ yes | no | 1 | 0 | on | off } Specifies whether the dialog window has fixed dimensions. The default is no. tabId: a parameter from handlePageChange/handleTabCreate 8) setTabValue(tabId, name, value) Set tab related data. tabId: a parameter from handlePageChange/handleTabCreate name: input name value: input value 9) getTabValue(tabId, name) Get tab related data tabId: a parameter from handlePageChange/handleTabCreate name: input name 10) getServerIp(host) Get IP address from hostname host: input host name 11) getCurrentDocument(tabId) Get the document of Tab related to 'tabId' 12) isTabOpen(tabId) Returns tab open status(bool) 13) getTabURL(tabId) Get the URL of Tab related to 'tabId' 14) getAllTabIDs() Returns IDs(id separated with comma) of all open tabs 15) doAction(actionIndex, [tabId]) Action Index List: 0: Go Home 1: Go Back 2: Go Forward 3: Stop 4: Refresh 5: Reload 6: Close 7: Close other Tabs 8: Goto previous Tab 9: Goto next Tab 10: New Tab 11: Scroll top 12: Scroll bottom 13: Scroll one page up 14: Scroll one page down 15: Print 16: Print preview 17: Page setup 18: Properties 19: Open 20: Save 21: Save as 22: Cut 23: Copy 24: Paste 25: Undo 26: Redo 27: Select all 28: Clear selection 29: View source 30: Internet options 31: Find 32: Show codepage menu 33: Show font size menu 34: Minimise window 35: Maximise window 36: Restore window 37: Reopen last close Tab 38: Close and goto previous Tab 39: Inline search 40: Preferences 41: Toggle proxy 42: Save forms 43: Fill forms 44: Duplicate Tab 45: Popup IEPro's Menu Properties: 1) onpagechange prototype: handlePageChange(tabId, url, state) tabId: given from plugin url: the url activated state: 1/2 . 1: before loading, 2: loaded 2) ontabcreate prototype: handleTabCreate(tabId) tabId: given from plugin 3) onpopupclose prototype: handlePopupClose(tabId, url, returnValue) tabId: given from plugin url: url of the popup window. activated when popupWindow() closed returnValue: Variant. Returns the value of the returnValue property as set by the window of the document specified in sURL . 4) onpress prototype: handleOnPress(tabId, url, posX, posY, clientWidth, clientHeight) posX, posY: click position clientWidth: plugin area width clientHeight: plugin area height 5) onclick prototype: handleOnClick(tabId, url, posX, posY, clientWidth, clientHeight) posX, posY: click position clientWidth: plugin area width clientHeight: plugin area height 6) ondblclick prototype: handleOnDblClick(tabId, url, posX, posY, clientWidth, clientHeight) posX, posY: click position clientWidth: plugin area width clientHeight: plugin area height 7) onmousemove prototype: handleOnMouseMove(tabId, url, posX, posY, clientWidth, clientHeight) posX, posY: click position clientWidth: plugin area width clientHeight: plugin area height 8) onmouseenter prototype: handleOnMouseEnter(tabId, url) 9) onmouseleave prototype: handleOnMouseLeave(tabId, url) 10) ontabclose prototype: handleOnTabClose(tabId, url);

tip in setStatusInfo() is a simple HTML format, please refer:

http://www.viksoe.dk/code/simplehtmlviewer.htm