This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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.
 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure what you are referring to. Are you saying when you click refresh in the browser it is not refreshing your page? Also, you are missing your form tags, so the form elements won't appear in Netscape. You should add those to get this to look right on both browsers.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic