Use the random.js javascript file in the body of your document.
<script language="Javascript" type="text/javascript" src="random.js"></script>
This will load a random line of text within the random.js file each time you visit/refresh the page.
Use the random.js javascript file in the body of your document.
<script language="Javascript" type="text/javascript" src="random.js"></script>
This will load a random line of text within the random.js file each time you visit/refresh the page.
Tags: html, javascript, random, refresh, text |
RSS feed for comments on this post. TrackBack URL



Thank you! This is elegant code. Very useful.
Comment by Jesse — September 2, 2009 @ 8:59 pm
Thanks so much for this code!
Comment by Jeff — April 19, 2010 @ 8:58 am
Thanks. I've been looking for a simpler way of doing this. great.
Comment by Jake — July 9, 2010 @ 2:57 pm