简体   繁体   中英

call applet method from javascript

i want to call a method startApp() ,located in the java applet file from a java script file.

i tried the following method

   <APPLET  name="drops" code="BigDrops.class" width=700 height=650 ></APPLET>

document.drops.startApp();

but it shows "has no method startApp()" when i looked in the console of the browser

But the strange fact i noticed is that this problem is occured in all computers except mine..the files are loaded in the dropbox. When i run the applet using the dropbox url from my computer, it works fine tell me why it does not work and also give the solution

7u217u25的某些安全级别下,来自JavaScript的LiveConnect调用受到限制。

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