Hi!
I’ve got a page:
[CODE]
<html><body>
<form action=”example.html” method=”post” name=”myform”>
<input type=”text” name=”mytext” value=””>
<input type=”image” name=”NameWith/And.IsHere” src=”submit.gif”>
</form>
<script language=”JavaScript”>
function disableForm(theform) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == “image”)
//doesn’t work
tempobj.click();
}
}
}
disableForm(myform);
</script></body></html>
My problem is that I like to simulate a CLICK on the image. That’s important because the image has a name which is need on the target page. Don’t ask why ^^“
That’s why myform.submit() wouldn’t work.
Please help my. thx