Hi all,
I have a little javascript function that assigns the value from a parent window to a field on a iframe. The function is on the parent page and its called by a button onclick() event on the other page. It works fine the first time i click on the button but if i click again the value isn't assigned anymore.
This is the function on the parent page:
This is how its called on the other page:
I thought an onclick() event would always work when called but perhaps not :(
Any ideias about this? Thanks in advance!
I have a little javascript function that assigns the value from a parent window to a field on a iframe. The function is on the parent page and its called by a button onclick() event on the other page. It works fine the first time i click on the button but if i click again the value isn't assigned anymore.
This is the function on the parent page:
Code:
<SCRIPT language=javascript>
function Id(){
var id = frm1.PersonId.value;
return id;
}
</SCRIPT>
Code:
<BUTTON class=MsoNavAddNew id=addRecord onclick=PersonId.value=parent.Id(); MsoTextAlign="General"></BUTTON>
Any ideias about this? Thanks in advance!
Comment