Modifying form values onSubmit but hide from user
<p>Im attempting to modify a JAvascript login form. The form action calls a DLL so I cant modify it to include the modifications I want to make.</p>

<p>Here is the javascript function Im using:</p>

<pre><code>function SubmitForm() {
    var Domain = "@domain.com"
    var txtBox = document.getElementById('username');

    if(txtBox.value.indexOf("\\") != -1){
        return; 
    }
    if((txtBox.value.indexOf("@") == -1) &amp;&amp; (txtBox.value != "")) {
        txtBox.value += Domain;
        return;
    }   
}
</code></pre>

<p>Basically checks the username for \ and @ chars first, if it doesnt contain those values it adds the Domain to the username.</p>

<p>Ive added this to the <code>&lt;form&gt; onsubmit="return(SubmitForm());"</code> to calls and use this function. However I dont want the user to see the domain been added to the username.</p>

<p>Is there any other way to do this></p>
