textbox opening my link using if else statement javascript
<p>i want excatly same thing but on else it will open link of my other .htm file. the whole code is fine but when i enter something in the textfeild i want a link to appear either in the alert or on the main window.</p>

<pre><code>&lt;script Language="JavaScript"&gt;
&lt;!--
    function Blank_TextField_Validator() {
        // Check the value of the element named text_name from the form named text_form
        if (text_form.text_name.value == "") {
            // If null display and alert box
            alert("Please fill in the text field.");
            // Place the cursor on the field for revision
            text_form.text_name.focus();
            // return false to stop further processing
            return (false);
        }
        // If text_name is not null continue processing
        return (true);
    }
--&gt;
&lt;/script&gt;
&lt;form name="text_form" method="get" action="#" onsubmit="return Blank_TextField_Validator()"&gt;
    &lt;input type="text" name="text_name" &gt;
    &lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;​​​
</code></pre>
