简体   繁体   中英

Browser Compatiabilty issue for Html file with internet explorer

We have use the following html code snippet. While right click on that html file and open with the Operamini, Mozila,Safari, Chrome are working fine but it did not working in the internet Explorer.

Code snippet[html]:

<!DOCTYPE html>
<head>
<title>Simple Example</title>
</head>
<body>
 <script type="text/javascript">

        function displaymessage() {
            alert("hai");
        }
        displaymessage();
    </script>
</body>

Can you please any one look into this and provide suggestion to resolve the problem . Thanks in advance.

Regards, Rajasekar

try this:

1) add html tag to open the page

2) internet explorer blocks "activeX" contents, you should click on the top and unlock them...

By default Internet Explorer restrict running script and ActiveX Controls. If you are not getting any warning, then Go to Tools --> Internet Option ---> Advanced ---> Security ---> Restore Defaults for " Security level for this zone ".

Hope this may help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM