jbscript.dev

Home

My First JavaScript

I just found the first bit of JavaScript I ever wrote used on my first website. Let’s set the scene:

if (screen.width == 1600)
{redirURL='index2.html'}

if (screen.width == 1280)
{redirURL='index2.html'}

if (screen.width == 1152)
{redirURL='index2.html'}

if (screen.width == 1024)
{redirURL='index2.html'}

if (screen.width == 800)
{redirURL='index3.html'}

if (screen.width == 640)
{redirURL='index3.html'}

if (screen.width <= 639)
{redirURL='index3.html'}

redirTime = "1500";
function redirTimer() { self.setTimeout("self.location.href = redirURL;",redirTime); }
footnotes
  1. ’Five exclamation marks, the sure sign of an insane mind.’ — Terry Pratchett

created