Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to do a redirect on a frame

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I want to enter a value on a input text, clicking on a img and then send the value of the input text to an another frame !!

Help me please !
 
use the ACTION and TARGET properties in the form tag
 
you could use
<form name=&quot;frm&quot;>
<input type=&quot;text&quot; name=&quot;unf&quot;>
<a href=&quot;#&quot; onclick=&quot;sendData();&quot;><img name=&quot;blah&quot;></a>
</form>

<script>
function sendData()
{
var data = document.frm.unf.value;
//where frames[1] is the name of the frame and input is
//the field you want to send it to:
parent.frames[1].input.value = data;
}
</script>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top