0

I'm searching a way to fire up click event of this tag :

    <input src="GN/button_go.gif" alt="Go" align="absmiddle" border="0" type="image">

using java-script and not using JQuery selectors. this has NO Id or Name or something else to identified by selectors. what do you affer?

vaheeds
  • 2,594
  • 4
  • 26
  • 36

1 Answers1

5

You can just do this by using document.querySelector

document.querySelector("[src='GN/button_go.gif']").click();
Amit Joki
  • 58,320
  • 7
  • 77
  • 95