• 14 个经典的javascript代码


    14个经典的Javascript代码,收藏一起来便于以后查阅和学习,包括常用的:打开,另存为,属性,打印,页面设置,刷新,导入收藏,导入收藏,加入收藏,整理收藏夹,查看源文件,语言设置,前进后退等等,这些常用的功能经常用到,非常实用,整理出来便于以后使用
    ■打开■ 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开> 
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>
     
    ■另存为■ 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 

    ■属性■ 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 

    ■打印■ 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 

    ■页面设置■ 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置><OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT> 

    ■刷新■ 
    <input type=button value=刷新 name=refresh onclick="window.location.reload()"> 

    ■导入收藏■ 
    <input type="button" name="Button" value="导入收藏夹" onClick=window.external.ImportExportFavorites(true,);> 

    ■导出收藏■ 
    <input type="button" name="Button3" value="导出收藏夹" onClick=window.external.ImportExportFavorites(false,);>
     
    ■加入收藏■ 
    <INPUT name=Button2 onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹> 

    ■整理收藏夹■ 
    <INPUT name=Submit2 onclick="window.external.ShowBrowserUI(OrganizeFavorites, null)" type=button value=整理收藏夹>
     
    ■查看原文件■ 
    <INPUT name=Button onclick=window.location = "view-source:" + window.location.href type=button value=查看源文件> 

    ■语言设置■ 
    <INPUT name=Button onclick="window.external.ShowBrowserUI(LanguageDialog, null)" type=button value=语言设置> 

    ■前进■ 
    <INPUT name=Submit onclick=history.go(1) type=submit value=前进> 

    ■后退■ 
    <INPUT name=Submit2 onclick=history.go(-1) type=submit value=后退>


    作者:蓝之风
    出处:http://www.cnblogs.com/vaiyanzi/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    SCRIPT TO GENERATE SQL*LOADER CONTROL FILE
    Setting an Oracle event:The structure of the trace syntax
    Script to Collect RAC Diagnostic Information (racdiag.sql)
    Data Block Cache Header Format Changes (Oracle8 Physical layout)
    Function Based Indexes and Global Temporary Tables
    EVENT: 10231 "skip corrupted blocks on _table_scans_"
    Materialized Views and Dimensions
    Script: Computing Table Size
    DBMS_REPAIR example
    Sql2005+:ssms 的【临时】服务器连接配置文件:
  • 原文地址:https://www.cnblogs.com/vaiyanzi/p/1128844.html
Copyright © 2020-2023  润新知