Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html

 
sanjaya das
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a small simple HTML Program
The problem that I am facing is that this Program can't be Refreshed usinf refresh method
Please point out the Error and also a solution to this
Program:- <html>
<head>
<script language=javascript>
function v()
{
if (!isNaN(document.all.txt1.value))
{
alert("Error")
}

}

</script>
</head>
<body >
<input type="text" name="txt1" value="">
<input type="button" name="bt1" value="hit" onClick="v()">
</body>
</html>

------------------
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is really more appropriate to the "HTML and JavaScript" forum, so I've moved it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic