- Impact
- 19
I've got a question that maybe the NamePros members can help me with. I've got a yahoo login form inside an iFrame, and I'm trying to make the target page open in a new window, not in an iFrame. How do I do this? I did a bit of looking on google, and all I found was to put the following code into the <form tag:
Here is the code that I have inside the iFrame:
Yep... it's a yahoo login.
Thanks.
This just made a new window open, but the target page was still opened inside the frame. I'm not sure what the 'foo' is...onsubmit="window.open('','foo',
'resizable=1,scrollbars=1,width=400,height=300')"
Here is the code that I have inside the iFrame:
Code:
<form method="post" action="https://login.yahoo.com/config/login?" autocomplete="off" onsubmit="window.open('','foo',
'resizable=1,scrollbars=1,width=400,height=300')" name="login_form">
<input type="hidden" name=".done" value="http://mail.yahoo.com">
<p><label for="username">Yahoo! ID: </label>
<input name="login0" id="username0" value="" size="17" class="yreg_ipt" type="text"> <label for="passwd">Password: </label>
<input name="passwd0" id="passwd0" value="" size="17" class="yreg_ipt" type="password"> <class="yreglgsb"><input type="submit" value="Login">
</p>
</form>
Thanks.







