[thelist] asp - form with window.open() function
Joshua Olson
joshua at waetech.com
Mon Jul 19 12:13:53 CDT 2004
> -----Original Message-----
> From: Brian Delaney
> Sent: Monday, July 19, 2004 12:36 PM
>
>
> I would like the results sent to the new window instead of the current
> page. Any ideas?
Brian,
Try this:
function newWindow(href)
{
window.open(href, 'dr','width=790,height=500,cen
tered=true,scrollbars=yes');
return 'dr';
}
<form action="directory_results.asp" target="_blank" onsubmit="this.target =
newWindow(this.action); return true;">
</form>
Non-JS enabled browsers will submit to a new full size window instead of the
popup.
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168
More information about the thelist
mailing list