target="_top" issue!

Posted on 2003-03-19
Medium Priority
Last Modified: 2010-05-18
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">

and in the head this is the function:

function sendmail()
//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

Question by:starshar
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 14

Expert Comment

ID: 8166095
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.

Author Comment

ID: 8166755

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 ..

LVL 33

Expert Comment

ID: 8168435
show us the sendmail() function.

Author Comment

ID: 8168453
Thanks ! I got it now if i put the attribute target="_top" into the <form> tag in the upper frame.

Thanks Anyways


Accepted Solution

kishannarasiah earned 60 total points
ID: 8172179
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">

try the above one it will work.
good luck

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question