
|
|
||||||||||||||||||


Using Javascript the login page can automatically default to the most suitable Webmail interface for the users browser.
To enable this feature, the following Javascript can be added to the *bottom* of the login-page ( must be on the bottom to correctly parse the login form )
<script language="JavaScript" src="http://demo.atmail.com/javascript/browsercheck.js"></script>
<select name="LoginType">
<option value="simple">Simple (Any browser)</option>
<option value="xp">Advanced (IE6+)</option>
</select>
The order of the LoginType select box is important - The browsercheck.js will select the most appropriate interface by the array-index of the select-box.
To test the login-script, use the login-name 'login' , password 'testing'