This article explains how to fix a bug in Sharepoint where the page would go dead after a save dialog is prompted. It states to add in my case where the link button is under the page where the link button resides
exportButton.OnClientClick = "document.getElementsByTagName(\'form\')[0].onsubmit = function() {return true;}";
Ive tried this the error it produces is "server tag not well formed". My form name is aspnetForm and my link button name is TestLinkButton. Any ideas what im doing wrong from the article?