Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="PTstackoverflow">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>JS Bin</title>
  </head>
  <body ng-controller="301786">
    <script src="https://rawgit.com/angular/bower-angular/master/angular.min.js"></script>
    <form ng-submit="submit($event)" action="//example.com" method="POST">
      <input type="submit" id="submit" value="Submit" />
    </form>
  </body>
</html>
 
angular.module('PTstackoverflow', [])
  .controller('301786', ['$scope', function($scope) {
    $scope.submit = function(e) {
      e.preventDefault();
      console.clear();
      console.log(e.srcElement.action);
      console.log(e.srcElement.method);
    };
  }]);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers