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,016
  • 3
  • 25
  • 35

1 Answers1

5

You can just do this by using document.querySelector

document.querySelector("[src='GN/button_go.gif']").click();
Amit Joki
  • 56,285
  • 7
  • 72
  • 91