logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Matt Burkhardt
    • Posted on Fri 14 Mar 2003

    May not be the most elegant, since I'm so new to JavaScript, but decided that since @URLOpen is calling the OnSubmit, I needed to change it. Best way I knew was to test for the string in the search box, and if it was null, just go on, otherwise do the returnfalse call. I called the field NewQuery (since Query means something else on the Search Results Page). Here's the code I used....

    if (document.forms[0].NewQuery.value == "") { return } else { return returnfalse(this.NewQuery); }

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: