⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mimetypesexample3.htm

📁 这是javascript高级程序设计的源码
💻 HTM
字号:
<html>
    <head>
        <title>MIME Types Example</title>
        <script type="text/javascript">
        
            function findPlugin() {
                var sType = document.getElementById("txtMimeType").value;
                
                if (navigator.mimeTypes) {
                    if (navigator.mimeTypes[sType]) {
                        if (navigator.mimeTypes[sType].enabledPlugin) {
                            alert("The MIME type \"" + sType + "\" uses the plugin \""
                                  + navigator.mimeTypes[sType].enabledPlugin.name + "\".");
                        } else {
                            alert("The MIME type \"" + sType + "\" has no registered plugin.");
                        }
                    } else {
                        alert("The MIME type \"" + sType + "\" is not registered.");
                    }  
                } else {
                    alert("Browser doesn't support navigator.mimeTypes.");
                }        
            }
            
        </script>
    </head>
    <body>
        <p>Type the name of the <acronym title="Multipurpose Internet Mail Extension">MIME</acronym>
        you want to check and click the Find Plugin button (Mozilla only).</p>
        <p><input type="text" id="txtMimeType" />
        <input type="button" value="Find Plugin" onclick="findPlugin()" /></p>
    </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -