Reducing the problem is a useful thing to do. Once you get the example working, you have a chance with the real problem.
But I think that Trollacious has found the problem. My guess is that once Main() is called, document.write("Testing <br>") destroys the code. Essentially your page now reads...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.