This shouldn't work. Document.write is not dynamic. You call the document.write function from the form after the whole page has been loaded and rendered. It won't work.
Again, what are you trying to do? do you want to see if func1() is actually called? Then just ad window.alert("testing...
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.