Hi All
There is probably a very simple solutoin to this, which I cannot see.
All I want to do is print some text when a button is clicked:
<script type="text/javascript">
function write() {
document.write("hello world")
}
</script>
<input type="button" onclick="write()" value="Print hello world">
What am I doing wrong? When I click on the button, all I get is a white screen.
Thankyou.
There is probably a very simple solutoin to this, which I cannot see.
All I want to do is print some text when a button is clicked:
<script type="text/javascript">
function write() {
document.write("hello world")
}
</script>
<input type="button" onclick="write()" value="Print hello world">
What am I doing wrong? When I click on the button, all I get is a white screen.
Thankyou.