|
You can't do it.
If you use document.write ANY time after a page is fully loaded into the browser, it WIPES OUT *EVERYTHING* on that page! Even the javascript that did the document.write.
YOu will need to learn to use DOM methods, instead.
Not only that... You never even *call* your numbercheck function.
Not only that... If you use a submit button, then the page *will* be submitted and the screen will be wiped out and the page reloaded from the browser.
In short...keep trying. You have a ways to go. But not a mile, maybe a meter or two.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
|