Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java, Web
Expertise: Beginner
Sep 4, 1998

What to Tell Browsers that Don't Support Java

If you're not careful about how you include Java applets in your Web pages, people who use browsers that don't support Java (or who have deliberately switched off Java support) will see nothing where the applet should have been. Be polite and offer non-Java clients an explanation by including alternative HTML code inside the <APPLET> </APPLET> tag pair. For example, you could tell them what they're missing out on:
 
<APPLET CODE=MyApplet.class WIDTH=200 HEIGHT=100>
<CENTER>
<FONT SIZE="3">
Sorry, your browser couldn't run the Java applet that would
 normally appear here.
This is because your browser doesn't support Java applets or because its Java support has been switched off. </FONT> </CENTER> </APPLET>
Martin Kelly
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap