Hi,
I want to do a click on a picture in an iframe, and i can't manage to
make my function works fine.
Here is the code :
<html>
<head>
<script language="JavaScript" type="text/javascript">
var sHN=1;
var sOnFire=1;
var sUrl=unescape("");
var PageDest=unescape("");
var nRTWB=0;
var sIdFiche=31;
var sOpen=0;
function Clic_iFrame() {
document.SYNTHESE.htmle.submit.click();
}
</script>
<script language="JavaScript" type="text/javascript">
function ClicOnFireNav( ){{if(((sHN==1)&&(sOnFire==1)))
{Clic_iFrame()}}}
function _T0(){{ClicOnFireNav()}_JSL(_PAGE_,"A112","_self", "","")}
</script>
</head>
<BODY topmargin=0 leftmargin=0 bgcolor=#FFFFFF onload="">
<table align=center width=770 height=1299><tr align=left valign=top>
<td>
<div style="position:relative;">
<div style=position:absolute;left:0;top:0;z-index:2;width:770>
<FORM NAME=SYNTHESE ACTION=Dynamic Adress target=_self METHOD=POST>
<TR>
<TD WIDTH=87/><TD COLSPAN=2 id="A113" valign=middle WIDTH=570>
<iframe id="htmle" name="htmle"width=570 height=400
src=http:www.mywebsite/confirm.cgi?action=authorize&pid=31></iframe>
</TD>
<TD WIDTH=95/><TD HEIGHT=400/>
<table>
<tr>
<td width=291 height=50 CLASS=LienGrasCentre id="tzA112" valign=middle
bgcolor=#E5ECF2>
<a name=A112 href="javascript:_T0()" CLASS=LienGrasCentre
ALIGN="CENTER">Consulter le détail >></a>
</td>
</tr>
</table>
</body>
</html>
I always get the same error : document.SYNTHESE.htmle.submit is not an
object.
Where is the mistake in "Clic_iFrame" function ?
Thanks for your help.