Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Safari Iframe Problem

Status
Not open for further replies.

dwhalen

Programmer
Feb 22, 2002
105
CA
Hey,

I have a js function that submits a form to an iframe. The js to do it is like so

Code:
//sending in our form reference and where we want to 
//post the form
function submitTemp(form,where)
{
  //making the forms target an iframe
  form.target="tempSaveIframe";
  form.method="POST";
  form.action=where;
  form.submit();

}

This works fine in IE,FireFox,Netscape,Mozilla and so on. However, in Safari 1.2 it opens a new window. Which is supposed to only happen when a forms target does not exists. Has anyone else seen this? Is there another way to set the target? I have very little experience with Safari, this is actually the first time I have looked at it.

Thanks for any help.

later
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top