rubinho
04-21-2005, 08:08 PM
As the title says, i have a form on 1.html :
<body>
<form onSubmit="return false">
<input type="text" name="base">
<input type="hidden" name="user" value="inc">
<input type="button" value="Go" onClick="window.location.href = '2.html?' + this.form.base.value">
</form>
</body>
2.html have an iframe (name and id tags "myiframe") which source is 3.html. So actually what i need is to pass the form value directly to the iframe, thats 3.html. I already did this with the iframe and work perfect, but i need it to be inside another page.
So i know that making something like myiframe.window.location.href should work, but when i tried that i get an error that is undefined. So, what i need is to know how do i define it or any other way to pass the form value to 3.html.
Thanks in advance for your help.
<body>
<form onSubmit="return false">
<input type="text" name="base">
<input type="hidden" name="user" value="inc">
<input type="button" value="Go" onClick="window.location.href = '2.html?' + this.form.base.value">
</form>
</body>
2.html have an iframe (name and id tags "myiframe") which source is 3.html. So actually what i need is to pass the form value directly to the iframe, thats 3.html. I already did this with the iframe and work perfect, but i need it to be inside another page.
So i know that making something like myiframe.window.location.href should work, but when i tried that i get an error that is undefined. So, what i need is to know how do i define it or any other way to pass the form value to 3.html.
Thanks in advance for your help.