Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing objects with JS and Opera

Status
Not open for further replies.

mickjbud

Programmer
Jun 13, 2002
48
GB
Hi all

Simple question.

I wish to evaluate whether JAVA is enabled in all JAVA capable browsers.

I do this by using JS thus:

var applet = document.applet // applet been the id of the applet.
if(applet == null)
{
do something here
}

This works fine for IE and FF but alas Opera doesn't want to play.

I know it is something to do with the document statement but I can find out what.

How do I get this to work in Opera.

All helpful help is welcome and much appreciated.

TIA

Regards

Mick

<a href="<a href="<a href="<a href="
 
Use
document.getElementById("applet") instead of document.applet.

I'm not sure it will work, but .getElementById is the W3C standard, so Opera SHOULD recognize that.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top