google chrome extension - Submission of form via javascript has a different result than submission of the form by a real click? -
i trying write javascript chrome extension submit following form on page browsing:
<form name='cartcheckoutpro' method='post'action='https://store01.prostores.com/servlet/store/checkout?cart_id=39064012' style='margin:0px'> <input type='image' name='checkout' src='/images/initialset/proceedtocheckout.gif' border='0'/><input type='hidden' name="cart_id" value="39064012"> </form> to me, thought easy this:
document.getelementsbyname("cartcheckoutpro")[0].submit(); however, when use javascript submit form, following page loading differently if had clicked button continue. thoughts of why running in issue?
here scripts @ destination page:
<script type="text/javascript"> window.onload=function(){ var email = document.getelementbyid("customerregistryemail"); if (email) email.setattribute("autocomplete", "off"); } </script> <script type="text/javascript"> function togglelogin() { document.getelementbyid('logininfo').style.display = document.getelementbyid('returning').checked ? "inline" : "none"; } yahoo.util.event.addlistener(window, "load", function() { togglelogin(); } ); togglelogin(); </script>
Comments
Post a Comment