JavaScript Issue

This is really pissing me off. It works one moment and not the next.



If I save it to a file and run it, it runs fine the first time, then I push refresh and I get

What’s Going On???

Works fine on every browser I tried.

How about those body tags?

Don’t worry about it. I just decided to do it a different way. When I put the code in a "href=“javascript:{rest of code here}” it works just fine. I didn’t want the extra click, but that’s what has to be done I guess.