I have javascript as follows
If I call this function from my javascript as follows
it fails but if called from HTML
it works.
Please tell me what I am getting wrong.
Code:
function newDoc() { window.location.href = "http://192.168.0.8/devit/logon.html"; }
Code:
newDoc();
Code:
<input type="button" nanme="SelectButton" id="SelectButton" value="Login" onclick="newDoc()" height="50" />
Please tell me what I am getting wrong.
Comment