本文介绍了为调用applet函数编写的Javascript不能在谷歌浏览器中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i我在asp .net网站上调用我的小程序。

它正在加载正确但是当我试图调用applet中的任何函数时IE浏览器中的
和Firefox正常运行,但在谷歌浏览器中它甚至没有执行我的javascript功能。

这里是我的代码:



Hi all,
i am calling my applet from asp .net website.
It is loading properly but when i m trying to call any function which is der in applet
in IE and firefox it is running properly but in google chrome it is not even executing my javascript function.
here is my code:

<applet name="applet1" code="appletForDevice/appletDev.class"
archive="applet3/appletForDevice.jar"
           width="100" height="150" >
           <param name="Message" value="Hi!" /></applet>

           <script language ="javascript" type="text/javascript"">
            <!--
             str = document.applet1.getNewString();
             if (str == null) {
             }
             else {
                 alert(str);
                }
            //-->
   </script>





如果有人知道问题和解决方案,请帮助我..

thanx in提前.. :)

上帝保佑你们所有..:)



please help me if someone knows the problem and solution..
thanx in advance..:)
god bless u all..:)

推荐答案

这篇关于为调用applet函数编写的Javascript不能在谷歌浏览器中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 00:22