I’m trying to debug this function in Firefox/Firebug and it says that “dbasedata.remove” is not a function??
function dbasetype(){
var dbasedata = document.forms[0]._dbase_name.value;
dbasedata = dbasedata.toUpperCase();
dbasedata = dbasedata.replace(/\s/g, "");
dbasedata = dbasedata.remove("UK_CONTACTS","");
if (dbasedata != "") {
_area.value = _dbase_name.value;
} }
It’s because JavaScript strings have no such method as
remove().You can see the available methods here.
If you want to replace “UK_CONTACTS” with “” then see the
replace()method instead: