Is there a way to get the action of an un specified form in javascript? I want to run through a few websites and get tthe action from forms so this would be helpfull. Thanks
<script type="text/javascript"> var formsArray = document.getElementsByTagName("form"); for (i=0; i<formsArray.length; i++) { document.write('form ' + (i+1) + ' action: ' + ' ' + formsArray[i].getAttribute('action') + '<br>\n'); } </script> Code (markup):