This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!