Code:
<script language="JavaScript" type="text/javascript">
function OfferTwo(){
var Name = document.getElementById("txtName").value;
var Email = document.getElementById("txtEmail").value;
offer2.location = 'http://www.getmyname.com?info.php?dp=0&l=0&p=0&Name='+Name+'&email='+Email;
alert(document.getElementById('offer2').location); // only gives the correct value once the page loads
innerIframe_OF2.location =document.landingForm.submit(); // want to auto sumbit }
</script>
i want to auto sumbit the information but javascript showing error
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)
Timestamp: Tue, 1 Jun 2010 23:55:39 UTC
Code:
Message: 'document.landingForm' is null or not an object
Line: 35
Char: 1
Code: 0
URI: http://getmyname.com/
any guidance is appreciable
Bookmarks