• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

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
0
starshar
Asked:
starshar
1 Solution
 
avnerCommented:
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.
0
 
starsharAuthor Commented:
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
0
 
knightEknightCommented:
show us the sendmail() function.
0
 
starsharAuthor Commented:
Thanks ! I got it now if i put the attribute target="_top" into the <form> tag in the upper frame.

Thanks Anyways

Cheers
0
 
kishannarasiahCommented:
hi,
it seems you want the mail.asp to be displayed in a fresh page.
if that is case then

<a class="left4" href="javascript:sendmail()" target="_blank">
GET A QUOTE <img src="images/mail.gif">
</a>

try the above one it will work.
good luck
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now