I\'m trying to create a fairly simple piece of JavaScript that displays a random image from an array each time the page loads. I need to figure out a way to get this runnin
Just don't put you javascript inside a function.
if you take it out of the function it will run when the page loads.
When it's in the function, it won't run unless called.