How to display text string with Javascript on screen?
This is my test page:
<html>
test
<script type="text/javascript">
docwrite(1);
document.write('hi');
docwrite('hello');
</script>
docwrite(2);
<script type="text/javascript">
function docwrite(x)
{
document.write(x);
}
</script>
</html>
I saw only "test docwrite(2);".
I want to see "test 1 hi hello docwrite(2);" with " 1 hi hello" coming from Javascript.
How to do that?