[thelist] Form Results in Pop-Up Window?
Anthony Baratta
Anthony at Baratta.com
Thu Feb 8 02:40:31 CST 2001
First off, I don't think you can use the onSubmit function this way. Try
removing the onSubmit and just using the targe="_blah". This will post to
the target page, and pop a new window.
To emulate what you want you might try to embed JavaScript inside the
target page that "reforms" the page to the dimensions and interface you
desire. e.g.
<script language="javascript">
self.status=0;
self.toolbar=0;
self.scrollbars=1;
self.resizable=1;
self.screenX=0;
self.screenY=0;
self.width=400;
self.height=400;
self.top=0;
self.left=0;
</script>
Not sure if that will work or not, just an idea.
Also you have some errors with your code snipet:
1 - you don't have a close on the script tag, </script> should be located
before the closing </head> tag.
2 - the correct window.open format is:
window.open(theURL,winName,winFeatures);
3 - nSmubit should be onSubmit
4 - as someone stated earlier, you need to close the " on you
onSubmit="openwin()"
5 - action should be equal to your target page/URL
---
Anthony Baratta
President
Keyboard Jockeys
More information about the thelist
mailing list