test
by Barry Carter
HTML
<div id="uks-1"></div>
JavaScript
//var CustomerNumber = document.getElementById( "TextBoxCustomerNumber" ).value;
var Url = "https://cors-anywhere.herokuapp.com/https://webrtc-uks-7.maxcontact.com";
xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = ProcessRequest;
xmlHttp.open( "GET", Url, true );
xmlHttp.send( null );
function ProcessRequest() {
if ( xmlHttp.readyState == 4 && xmlHttp.status == 404 ) {
document.getElementById( "uks-1").value = "Working";
}
}