Javascript contains statement
<p>I'm trying check a field in a database to see if it does not contain either "UK_CONTACTS or a blank. If it is either of these conditions I want to copy the that field to another field. I am very very new at this and have come up with the following and have written in text "does not contain" as I don't know the correct syntax for javascript.</p>

<pre><code>function getdbasename(){
var dbasedata = document.forms[0]._dbase_name.value;
}

If (dbasedata does not contain "UK_CONTACTS" || dbasedata does not contain " ") {
    _area.value = _dbase_name.value;
}
</code></pre>

<p>Probably miles out but it's my best shot.</p>
