How to use Java applets in modern browsers
Finding out how to embed a Java applet in current major browsers is quite a task. Lots of pages still suggest using the <applet>
tag and describe how to use the mayscript
attribute to allow communication between Java and JavaScript. Other pages recommend using this mysterious mayscript
attribute even in <embed>
and <object>
tags. I think there is a lot of voodoo out there, attributes which sound important but are not necessary at all...
So I started studying this stuff by myself. My goal was embedding a Java applet on a page which must work in Internet Explorer 7+, Google Chrome, Firefox, Opera and Safari. The applet must receive an applet parameter and must communicate with JavaScript in both directions.
Continue reading "How to use Java applets in modern browsers"