Remove Form Target

Benchmark created by Scott on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
#PEPCForm 1
$('#PEPCForm .stlButton').click(function() {
  $('#PEPCForm').removeAttr('target');
});
ready
#PEPCForm 2
$('#PEPCForm .stlButton').click(function() {
  $("#PEPCForm .stlButton").attr("target", "");
});
ready
#PEPCForm 3
$('#PEPCForm .stlButton').on('click', function() {
  $('#PEPCForm').removeAttr('target');
});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Scott on