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

Source: Internet
Author: User

Hide the toolbar in the browser that jumps out when the mouse moves to the image

Or
<Head>
<Meta http-equiv = "imagetoolbar" content = "no">
</Head>


Open, save as, attribute, print, and other 14 JS 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>

Related Article

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.