Jest to kod wyświetlający losowy wyświetlanie tekstu po każdym odświeżeniu strony.
<head>
<script type="text/javascript">
var gibberish=["To jest tekst", "A to inna wiadomość", "Losowy tekst"]
function filltext(words){
for (var i=0; i<words; i++)
document.write(gibberish[Math.floor(Math.random()*3)]+" ")
}
</script>
</head>
<body>
<script type="text/javascript">filltext(45)</script>
<script type="text/javascript">filltext(15)</script>
</body>
los wyswietlanie tekstu strona