Home >Web Front-end >JS Tutorial >Comprehensive collection of Javascript technical skills (5)_javascript skills
//POST instead of FORM
//readyState is the progress of data returned by xmlhttp, 0=loading, 1=not initialized, 2=loaded, 3=running, 4=completed
//Whether the component is installed
isComponentInstalled("{6B053A4B-A7EC-4D3D-4567-B8FF8A1A5739}", "componentID"))
//Check whether the webpage exists
function CheckURL(URL)
{
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp.Open("GET",URL, false);
try
{
xmlhttp.Send();
var result = xmlhttp.status;
}
catch(e) {return(false); }
if(result==200)
{
return true;
}
srno:
times: