Fly Fishing Forum - View Single Post - random text
Thread: random text
View Single Post
  #3  
Old 01-26-2000, 10:39 PM
isoh isoh is offline
Senior Member
 
Join Date: Feb 2001
Posts: 119
RE:random text

\<!--no-->n will generate a new line, but not an HTML line break - that's a JS constant. document.write("this
is
three lines") will load with the browser only if it is placed outside a function defintion:

&lt;SCRIPT language="JavaScript"&gt;
function write_it() {
document.open()
document.write("This is three&lt;BR&gt; lines
in the&lt;BR&gt; browser \<!--no-->n \(two when viewing source\)")
document.close()
}
&lt;/SCRIPT&gt;

This will not execute until the function write_it() is called. An example of how you would call it might be:

&lt;A HREF="" onclick="write_it();return false"&gt;How many lines?&lt;/A&gt;


Yes. I'm *psyched* for Florida. Just learned how to tie Tabory's snake fly. Show me the snook! Spinning deer hair can be a messy, messy endeavor....

Terry, I'm close to getting my scanner set up. Just have to install Win 98 since there are no USB drivers for NT I'm struggling with partition space. At this rate I'll be ready to show off my work just as tying season ends and sore arm season opens

al
Reply With Quote