Link to home
Start Free TrialLog in
Avatar of starshar
starshar

asked on

target="_top" issue!

Hi,
im using a frame which has two frames,then in the lower frame
im using this code..
..
<a class="left4" href="javascript:sendmail()">
GET A QUOTE <img src="images/mail.gif">
</a>
..

and in the head this is the function:

function sendmail()
{
parent.parent.frames["NF"].document.configure.submit();
//its submitting the form present in the other top frame to mail.asp
)

--------------

So what is happening when im clicking 'Get Quote',
the lower frame stays intact ..i tried putting the attribute target="_top" ,but then it gives an error object expected...

What can be done .Plz Help

Thanks
Avatar of avner
avner

What is the NF frame, the lower or the upper ?

which is the fram you want to submit ? what is the problem ?

Try to clarify the question with code.
Avatar of starshar

ASKER

Avner

Top frame is named NF
Top frame is named PF

Now the problem is :
when i click the link 'Get Quote' then
the next page which is mail.asp
is coming up in the frame called NF ,which is the top frame and the lower frame which also contains the'get quote' persists.

the ideal way shud have been -that on clicking -i shud have got the mail.asp page outside any of the frames ,like as a fresh page..

hope u got it ..

thanks
Avatar of knightEknight
show us the sendmail() function.
Thanks ! I got it now if i put the attribute target="_top" into the <form> tag in the upper frame.

Thanks Anyways

Cheers
ASKER CERTIFIED SOLUTION
Avatar of kishannarasiah
kishannarasiah

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial