Open, save as, attribute, print, and other 14 JS Code

Source: Internet
Author: User
■ Enable ■
<Input name = button onclick = Document. All. webbrowser. execwb (1,1) type = button value = open>
<Object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Save As ■
<Input name = button onclick = document. all. webbrowser. execwb (4,1) type = button value = Save As> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Attribute ■
<Input name = button onclick = document. all. webbrowser. execwb (10, 1) type = button value = property> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Print ■
<Input name = button onclick = document. all. webbrowser. execwb (6, 1) type = button value = print> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Page settings ■
<Input name = button onclick = document. all. webbrowser. execwb (8, 1) type = button value = page Settings> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Refresh ■
<Input type = button value = Refresh name = Refresh onclick = "window. Location. Reload ()">
■ Import to favorites ■
<Input type = "button" name = "button" value = "Import favorites" onclick = Window. External. importexportfavorites (true,);>
■ Export to favorites ■
<Input type = "button" name = "button3" value = "Export favorites" onclick = Window. External. importexportfavorites (false,);>
■ Add to favorites ■
<Input name = button2 onclick = "window. External. AddFavorite (location. href, document. Title)" type = button value = add to favorites>
■ Sort favorites ■
<Input name = submit2 onclick = "window. extern

Webbrowser. execwb () Open
Webbrowser. execwb () Close all existing IE Windows and open a new window
Webbrowser. execwb () Save the webpage
Webbrowser. execwb (6, 1) print
Webbrowser. execwb (7,1) print preview
Webbrowser. execwb (8, 1) print page settings
Webbrowser. execwb (10, 1) view page properties
Webbrowser. execwb () seems to be undo, to be confirmed
Select All webbrowser. execwb (17,1)
Webbrowser. execwb (22, 1) Refresh
Webbrowser. execwb () Close form no prompt

These are only valid for ie5.5 and later versions. I tested them in IE6 and passed them.

Code:

■ Enable ■
<Input name = button onclick = Document. All. webbrowser. execwb (1,1) type = button value = open>
<Object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Save As ■
<Input name = button onclick = document. all. webbrowser. execwb (4,1) type = button value = Save As> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Attribute ■
<Input name = button onclick = document. all. webbrowser. execwb (10, 1) type = button value = property> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Print ■
<Input name = button onclick = document. all. webbrowser. execwb (6, 1) type = button value = print> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Page settings ■
<Input name = button onclick = document. all. webbrowser. execwb (8, 1) type = button value = page Settings> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Refresh ■
<Input type = button value = Refresh name = Refresh onclick = "window. Location. Reload ()">
■ Import to favorites ■
<Input type = "button" name = "button" value = "Import favorites" onclick = Window. External. importexportfavorites (true,);>
■ Export to favorites ■
<Input type = "button" name = "button3" value = "Export favorites" onclick = Window. External. importexportfavorites (false,);>
■ Add to favorites ■
<Input name = button2 onclick = "window. External. AddFavorite (location. href, document. Title)" type = button value = add to favorites>
■ Sort favorites ■
<Input name = submit2 onclick = "window. External. showbrowserui (organizefavorites, null)" type = button value = favorites>
■ View the original file ■
<Input name = button onclick = Window. Location = "view-source:" + window. Location. href type = button value = View Source File>
■ Language settings ■
<Input name = button onclick = "window. External. showbrowserui (languagedialog, null)" type = button value = language Settings>
■ Qianjin ■
<Input name = submit onclick = history. Go (1) type = submit value = forward>
■ Retreat ■
<Input name = submit2 onclick = history. Go (-1) type = submit value = back>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.