[thelist] Advanced popup window

Sutherland, Paul Paul.Sutherland at ccc.govt.nz
Mon Dec 1 16:04:51 CST 2003

Maybe i was not clear in my question.

I want to submit a form that will open in a new window of which I can control the size and features, and for this to work in non-javascript situations (obviously not controlling window size etc.)

It seemed that an extension of the method  below may work...

   onclick="window.open(this.href, this.target); return false"
  >click here</a>

any suggestions?


-----Original Message-----
From: Lonnie [mailto:kr43m0r at earthlink.net]
Sent: Monday, 1 December 2003 10:05 a.m.
To: thelist at lists.evolt.org
Subject: Re: [thelist] Advanced popup window

> How can you use this method when submitting a form (e.g. onSubmit will
open a new window as per the example below - and will still work if JS is
not there...)
> <form action="/polls.asp" method="post">
> <input type="radio" name="poll" value="R" />R
> <input type="submit" name="WFM_Submit" value="Vote" />
> </form>
> I have fiddled with onSubmit and a few other things and gotten some nice
errors but... didn;t work it out...

Well... onsubmit requires javascript. AFAIK, the only way you can post a
form to a new window without using javascript is to use the target attribute
(with the appropriate Doctype):

<form action="/polls.asp" method="post" target="_blank">

Of course you'll have no control over the window size, position, etc.

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

This electronic email and any files transmitted with it are intended 
solely for the use of the individual or entity to whom they are addressed. 

The views expressed in this message are those of the individual 
sender and may not necessarily reflect the views of the Christchurch
City Council.

If you are not the correct recipient of this email please advise the
sender and delete.

Christchurch City Council

More information about the thelist mailing list