I have been trying to click the input button on a web page using JavaScript. I have tried the following:
HTML
<input type="image" src="/img/go_button.gif">
VBA
' Not working
el.click
' Not working
el.focus
el.invokemember("OnClick")
JavaScript
function toggleMenu(obj, title)
{
var internalMenu = obj.parentNode.getElementsByTagName("div").item(0);
var d = internalMenu.style.display;
if (d != "block") {
internalMenu.style.display = "block";
obj.innerHTML =
'<IMG SRC="/images/menu-arrow-open.gif"'
+ ' border=0> ' + title;
} else {
internalMenu.style.display = "none";
obj.innerHTML =
'<IMG SRC="/images/menu-arrow.gif" ' +
'border=0> ' + title;
}
}
I have been searching Google, but I haven't found any solution yet.I've seen a method called ie.Document.parentWindow.execScript, but I'm not sure how to use it.
Is it possible to click that image button and take whatever results I want?

el? Are you sure you have the right element? Is the <input type="image"> a FORM's submit button? If so, why not simply submit the FORM?