JS Save As, print, properties, add to Favorites, close and other code

Source: Internet
Author: User

JS Open Code

<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (a) Type=button value= open >
<object classid=clsid:8856f961-340a-11d0-a96b-00c04fd705a2 height=0 Id=webbrowser width=0></OBJECT>

May prompt "Insufficient permissions"

JS Save As code

<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>

May prompt "Insufficient permissions"

JS attribute Code

<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (10,1) Type=button value= Properties ><object Classid=CLSID : 8856F961-340A-11D0-A96B-00C04FD705A2 height=0 Id=webbrowser width=0></object>

May prompt "Insufficient permissions"

JS Print Code

<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>

May prompt "Insufficient permissions"

Or

<a href= "Javascript:window.print (); > Printing </a>

JS Page Setup Code

<input Name=button ONCLICK=DOCUMENT.ALL.WEBBROWSER.EXECWB (8,1) Type=button value= Page Setup ><object classid= CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 Id=webbrowser width=0></object>

May prompt "Insufficient permissions"

JS Refresh Code

<input Type=button value= Refresh Name=refresh onclick= "Window.location.reload ()" >

JS Import Favorite Code

<input type= "button" name= "button" value= "Import Favorites" Onclick=window.external.importexportfavorites (True,);>

JS Export Favorite Code

<input type= "button" Name= "Button3" value= "Export Favorites" Onclick=window.external.importexportfavorites (false,);>

JS Add to Favorite code

<input name=button2 onclick= "Window.external.AddFavorite (Location.href, Document.title)" Type=button value= Add to Favorites >

JS Organize your favorite code

<input name=submit2 onclick= "Window.external.ShowBrowserUI (organizefavorites, null)" Type=button value= organize favourites >

JS View the original file code

<input Name=button onclick=window.location = "View-source:" + window.location.href Type=button value= View Source files >

JS Language Setup Code

<input Name=button onclick= "Window.external.ShowBrowserUI (Languagedialog, null)" Type=button value= language Settings >

JS Forward Code

<input name=submit onclick=history.go (1) type=submit value= forward >

JS Back code

<input name=submit2 onclick=history.go ( -1) type=submit value= back >

JS Close Code

<input name=submit2 onclick= "Window.close ()" Type=submit value= "Off" >

Note: The value of the onclick in the above code is the command code, which can also be used in the link, such as:

<a href= "Javascript:window.close ()" > Close </a>

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.