Common functions for js-based Internet Explorer operations: zookeeper external,history,document.exe ccommand
JS operation ie Explorer window. External...
1. Window. external...
type = button value = import to favorites>
type = button value = export favorites>
related:
2. history...
<Input onclick = history. Go (1) type = button value = forward>
<Input onclick = history. Go (-1) type = button value = back>
<Input onclick = history. Forward () type = button value = forward>
<Input onclick = history. Back () type = button value = back>
32.16document.exe ccommand...
<Input onclick = "document.exe ccommand ('cut ')" type = button value = cut>
<Input onclick = "document.exe ccommand ('copy')" type = button value = copy>
<Input onclick = "document.exe ccommand ('paste ')" type = button value = paste>
<Input onclick = "document.exe ccommand ('undo ')" type = button value = undo>
<Input onclick = "document.exe ccommand ('delete')" type = button value = Delete>
<Input onclick = "document.exe ccommand ('bold ')" type = button value =>
<Input onclick = "document.exe ccommand ('italic ')" type = button value = italic>
<Input onclick = "document.exe ccommand ('underline')" type = button value = underline>
<Input onclick = "document.exe ccommand ('stop')" type = button value = stop>
<Input onclick = "document.exe ccommand ('saveas')" type = button value = save>
<Input onclick = "document.exe ccommand ('saveas', false, 'c: \ test.htm')" type = button value = Save As>
<Input onclick = "document.exe ccommand ('fontname', false, FN)" type = button value = font>
<Input onclick = "document.exe ccommand ('fontsize', false, FS)" type = button value = font size>
<Input onclick = "document.exe ccommand ('refresh', false, 0)" type = button value = Refresh>
4. Window. location...
<Input onclick = Window. Location. Reload () type = button value = Refresh name = Refresh>
<Input onclick = 'window. Location = "view-source:" + window. Location. href 'Type = button value = View Source file name = button7>
5. webbrowser. execwb...
<Object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (2, 1) type = button value = close all> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (4,1) type = button value = Save As> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (6, 1) type = button value = print> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (6, 6) type = button value = print directly> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (7,1) type = button value = print preview> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (8, 1) type = button value = page Settings> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (10, 1) type = button value = property> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (17,1) type = button value = select all> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (22,1) type = button value = Refresh> <br/>
<Input name = button onclick = Document. All. webbrowser. execwb (45, 1) type = button value = close>
<Object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object> loads the control on the page to call the control method, this classid is unique in the system registry. If it is changed, it may be the ID of another control or a non-existent control, so it cannot be changed.
Add the consumer ID parameter in webbrowser. execwb (try it yourself ):
Olecmdid_open = 1,
Olecmdid_new = 2,
Olecmdid_save = 3,
Olecmdid_saveas = 4,
Olecmdid_savecopyas = 5,
Olecmdid_print = 6,
Olecmdid_printpreview = 7,
Olecmdid_pagesetup = 8,
Olecmdid_spell = 9,
Olecmdid_properties = 10,
Olecmdid_cut = 11,
Olecmdid_copy = 12,
Olecmdid_paste = 13,
Olecmdid_pastespecial = 14,
Olecmdid_undo = 15,
Olecmdid_redo = 16,
Olecmdid_selectall = 17,
Olecmdid_clearselection = 18,
Olecmdid_zoom = 19,
Olecmdid_getzoomrange = 20,
Olecmdid_updatecommands = 21,
Olecmdid_refresh = 22,
Olecmdid_stop = 23,
Olecmdid_hidetoolbars = 24,
Olecmdid_setprogressmax = 25,
Olecmdid_setprogresspos = 26,
Olecmdid_setprogresstext = 27,
Olecmdid_settitle = 28,
Olecmdid_setdownloadstate = 29,
Olecmdid_stopdownload = 30,
Olecmdid_ontoolbaractivated = 31,
Olecmdid_find = 32,
Olecmdid_delete = 33,
Olecmdid_httpequiv = 34,
Olecmdid_httpequiv_done = 35,
Olecmdid_enable_interaction = 36,
Olecmdid_onunload = 37,
Olecmdid_propertybag2 = 38,
Olecmdid_prerefresh = 39,
Olecmdid_showscripterror = 40,
Olecmdid_showmessage = 41,
Olecmdid_showfind = 42,
Olecmdid_showpagesetup = 43,
Olecmdid_showprint = 44,
Olecmdid_close = 45,
Olecmdid_allowuilesssaveas = 46,
Olecmdid_dontdownloadcss = 47,
Olecmdid_updatepagestatus = 48,
Olecmdid_print2 = 49,
Olecmdid_printpreview2 = 50,
Olecmdid_setprinttemplate = 51,
Olecmdid_getprinttemplate = 52,
Olecmdid_pageactionblocked = 55,
Olecmdid_pageactionuiquery = 56,
Olecmdid_focusviewcontrols = 57,
Olecmdid_focusviewcontrolsquery = 58
Olecmdid_showpageactionmenu = 59