Hi,
I want to show the value of a counter-variable that is incremented with a
button. How do I refresh the page after the button is pressed ? Looks pretty
basic but I cannot find the answer in the books.....
Below is a simple example that shows what I want
Ton den Hartog
<html>
<head>
<script type='text/javascript'>
function inc()
{
count=count+1;
// how to refresh now ??
}
</script>
</head>
<body>
<script type='text/javascript'>
var count
count=0;
</script>
<script type='text/javascript'>
document.write( "Count is now "+count);
</script>
<input type=button id=date_edit value='...' OnClick='inc(); '>
</body>
</html>
I want to show the value of a counter-variable that is incremented with a
button. How do I refresh the page after the button is pressed ? Looks pretty
basic but I cannot find the answer in the books.....
Below is a simple example that shows what I want
Ton den Hartog
<html>
<head>
<script type='text/javascript'>
function inc()
{
count=count+1;
// how to refresh now ??
}
</script>
</head>
<body>
<script type='text/javascript'>
var count
count=0;
</script>
<script type='text/javascript'>
document.write( "Count is now "+count);
</script>
<input type=button id=date_edit value='...' OnClick='inc(); '>
</body>
</html>
Comment