Posted By

utunga on 06/28/10


Tagged


Versions (?)

IE7/IE8 make password get remembered hack


 / Published in: HTML
 

  1. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
  2. </head>
  3. <form name="test" action="POST" method="/somewhere/nowhere" onsubmit="return doHack()">
  4.  
  5. <pre>
  6. <div id="searchBoxGoesHere">other: <input type=input name=other /></div>
  7. username: <input type="input" name="username" />
  8. password: <input type="password" name="password" />
  9.  
  10. <input type="submit" value="submit">
  11. </pre>
  12.  
  13. </form>
  14.  
  15. //$(function() {
  16. //on document ready
  17. //$("#searchBoxGoesHere").html("other: <input type=input name=other />");
  18. //});
  19.  
  20. function doHack() {
  21. $("#searchBoxGoesHere").html("");
  22. return true;
  23. }
  24. </body>
  25. </html>

Report this snippet  

You need to login to post a comment.