Skip past navigation linksSecure Global Desktop Administration Guide > Applets > resetNamePassword (login applet)

resetNamePassword (login applet)

Syntax

Skip past command syntax or program codevoid resetNamePassword()

Description

The resetNamePassword method clears any text in the login applet's Username and Password edit boxes.

Examples

Skip past command syntax or program code<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.

Related topics