wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "html" Watch "html" New topic
Author

html

sanjaya das
Greenhorn

Joined: Jan 01, 2001
Posts: 2
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

Joined: Jan 07, 1999
Posts: 6920
I think this is really more appropriate to the "HTML and JavaScript" forum, so I've moved it.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html
 
Similar Threads
Submit Methods pulling same data
Problem with javascript include
html
enable disabled input using js
Which submit button was clicked?