söndag 30 januari 2011

document.write() alternatives?

In the book they use "print()" and "show()", but they don't work in the browser. So my questions are:

1. Why do they use examples that do not work? they should teach stuff that we can use.

2. The only way I know to output content in JS is "document.write()", is there a better, or at least another way? it's quite long to type document.write compared to PHP where "echo()" or "print()" does the same thing.


glenn.hellquist@gmail.com
webbkraft.com

/*#p2pu-Jan2011-javascript101*/

Inga kommentarer:

Skicka en kommentar