Writing

liunx

Guest
I read somwhere how to make text appear on screen using a statement something like: window.write(blahblah), can cannot remember specifically what it is. Also, is it possible to move such chunks of writing around the page - (i.e. to avoid having to use images with writing in them) <br />
<br />
And (finally), is there a property of the writing (like .length) that can be used to find out how many lines there are of a particular chunk?<br />
<br />
thanks<!--content-->Think you're looking for is:<br />
document.write("Your text here")<br />
<br />
As to moving it around, the simple version is if you do it as the page loads it will output the text where ever it happens to be in the load of the page. If you do it after the page loads, then it overwrites the page. There are however, better, but more complex ways of doing this.<br />
<br />
By giving an element an ID you will be able to determine the number of characters in it using the length property, but not the number of lines since this will vary depending on a host of user controllable options.<!--content-->
 
Back
Top