Onload function does not work
Hi Friends,In Html page onload function does not fire
<script type="text/javascript">
function getQuerystring() {
debugger;
var q = document.location.toString();
q = q.split("?");
if (q.length > 1) {
q = q[1].split("&");
var str = ""
for (i = 0; i < q.length; i++) {
tmp = q[i].split("=")
str += i + tmp[0] + tmp[1];
}
if (str != '') {
alert('Lab Reference Number or Password is incorrect. Please verify and enter again.');
}
}
}
window.onload = function () {
debugger;
getQuerystring()
}
</script>