I'm new here, and this is the first question to be asked by me.
I'm a beginner in programming and coding, I'm trying to make a basic system to view students' marks by entering their school numbers. Here's my code:-
<html>
<body>
<head>
<title>Test</title>
</head>
<input type="text" id="txtjob">
<button onclick="getnatega()">OK</button>
<script>
function getnatega() {
if (txtjob == 2386) {
window.location.href = "www.ex.com";
}
}
</script>
</body>
</html>
But whenever i click the "OK" button nothing happens. I'd be thankful to whoever helps me.