Secure Global Desktop Administration Guide > Applets > resetNamePassword (login applet)
void resetNamePassword()
The resetNamePassword
method clears any text in the
login applet's Username and Password edit boxes.
<SCRIPT LANGUAGE="JavaScript"> function emptyBoxes() { document.applets["Tarantella Login"].resetNamePassword(); } </SCRIPT> <FORM> <INPUT TYPE=button VALUE="Clear" onclick="emptyBoxes()"> </FORM>
This example adds a button beneath the login applet which clears the Username and Password.
Add the code to the HTML document containing the login applet
(index.html
, in the sco/tta/standard
login
theme for example), after the TTAAPPLET
declaration.
Copyright © 1997-2005 Sun Microsystems, Inc. All rights reserved.