Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 1,134   Yesterday: 1,240   Max: 1,872   Total: 364,534   Current Users : 13 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

Attribute for <APPLET ...>
NAME = "text string"

NAME gives the applet a unique name. NAME is mostly useful is you want to use JavaScript to control the applet in some way.

For example, the My Applet applet allows you to set the text of the applet with its setText() method. The following code creates an applet with the name MyApplet. The code then creates a text field where you can type some text, then a button that calls the applet's setText() method. The button calls setText() by using the name set in the <APPLET ...> tag:

<APPLET 
     CODE="MyApplet.class"
     HEIGHT=75 WIDTH=300 
     NAME="MyApplet">
<PARAM NAME=TEXT VALUE="type something in the field">
</APPLET>

<FORM>
<INPUT NAME="settext"> 
<INPUT 
  TYPE=BUTTON VALUE="set applet text" 
  onClick="document.applets['MyApplet'].setText(this.form.elements['settext'].value)">
</FORM>

which gives us this applet and form:



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.