RE: Form Target

by "Todd Philipps" <todd(at)anvil-group.com>

 Date:  Fri, 11 Feb 2000 13:19:34 -0800
 To:  <hwg-languages(at)mail.hwg.org>
  todo: View Thread, Original
been there, done that...didn't work

here is what I got to work. Any feedback would be appreciated.

my main page (index) onLoad:
function openWindow(url, name) {
	window.name = 'main'
	popupWin = window.open(url, name,
'scrollbars=no,toolbar=no,width=325,height=355,left=275,top=130')
}

Popup form code:
<form name="formname" action="newpage.asp" target="main" method="post"
onSubmit="closeWin(this.form)">

The piece I was missing was the window.name = 'main'

Todd.



-----Original Message-----
From: owner-hwg-languages(at)hwg.org [mailto:owner-hwg-languages(at)hwg.org]On
Behalf Of Nicholson, Dale

Use this in your HREF for your target attribute:

TARGET="_top"

Example:
<A HREF="http://www.yoursite.com/yourpage.html" TARGET="_top">click me</A>

Dale Nicholson

-----Original Message-----
From: Todd Philipps [mailto:todd(at)anvil-group.com]

Hi all!

Here is my delima:

I have a page (index) that spawns a popup window (popup).  In the popup,
there is a form with one text field.  The action on that form is calling an
ASP page.  I want that action to happen in the index page, also I want the
popup to close.

How can I set the TARGET to point to the parent window?

Thanks!
Todd Philipps
ConsumerInfo.Com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA