Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function myFunction() {
- var x = document.getElementById("myInput").value;
- var y = document.getElementById("h1").value;
- alert(x);
- if(y > x)
- alert("good");
- else
- alert("ok");
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement