Forum Moderators: open
I am trying to use a button on a menu frame to enter a value to a textbox of another frame onclick.
I think my code is OK, but somehow it doesn't work.
Whats the missing link?
TOP
<frameset cols="100,*" frameborder="NO" border="0" framespacing="0">
<frame src="src.php" name="mainFrame">
<frame src="http://mail.yahoo.com/" name="rightframe" scrolling="NO" noresize>
</frameset>
MENU FRAME
<a onclick="top.rightframe.document.getElementByName('login').value='dummyname'">click here to enter login name</a>
try it like this...
[blue][1]<a href="javascript:void(parent.rightframe.document.getElementBy[3]Id[/3]('login').value='dummyname')" >click here to enter login name</a>[/1][/blue]
birdbrain