Question : Function needs help with if this or this then that

Hi, I've got this function here that I need to work on 2 levels.

function subit_confirm_update(){
      if((document.getElementById("savestatus").innerHTML=='') or (document.getElementById("savestatus").innerHTML=='Saved')){
            alert("No update needed.");
            return false;
      }
}

though this doesn't work, would anyone provide a working function for this example?

Answer : Function needs help with if this or this then that

Could you please mention what your code is trying to do (exact reqquirements) at first place?

var value = document.getElementById("savestatus").innerHTML;

if ( value.length  == 0 || value == "Saved")
{
              alert("No update needed.");
            return false;
}
Random Solutions  
  •  Need to monitor specific events in SCOM 2007 R2
  •  Secure Email for HIPAA compliance
  •  RegisterArrayDeclaration and RegisterClientScriptBlock
  •  on a web application connecting to oracle.  Finding a user session from their computer to oracle
  •  Mail folders->knowing what FILE is for what message
  •  Winsock error in XP Professional Error 12029 Provider entry MSAFD Could not make an HTTP connection.
  •  GroupWise 6.0.1 -  Some addresses are undeliverable and have been crossed out
  •  I have designed an website in flash as well in html, if the browser dont have flash then i want them to be directed to the html version, or else they need to directed to flash version
  •  Add DC to Windows Server 2003 Network - error msg
  •  What is the best Raid stripe size and Windows allocation unit size for large files?
  •  
    programming4us programming4us