Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

Want to open I small popup widow from a from action...

I cant to open I small popup widow froma from action

I use the following line

<form name=comentario method=post action=detalles.asp target="tinyWindow" onsubmit="window.open('', 'tinyWindow', 'toolbar,width=150,height=100,resizable=1');">

But it opens a new browser fullsize window.... I have no script in theheader... is it necesarry?

0
robrodp
Asked:
robrodp
  • 2
1 Solution
 
gamebitsCommented:
I'm sure you can adapt from this example

<html>
<head>
<SCRIPT TYPE="text/javascript">
<!--
function popupform(myform, windowname)
{
if (! window.focus)return true;
window.open('', windowname, 'height=200,width=400,scrollbars=yes');
myform.target=windowname;
return true;
}
//-->
</SCRIPT>
</head>


<FORM METHOD=POST
   ACTION="../cgi-bin/mypopupcgi.pl"
   onSubmit="popupform(this, 'join')">
name: <INPUT NAME="realname"><BR>
email: <INPUT NAME="email"><BR>
<INPUT TYPE=SUBMIT VALUE="show me">
</FORM>

</html>

Gamebits
0
 
JeffHowdenCommented:
Here's a working example I put together a long time ago that others have used with great success:

http://evolt.jeffhowden.com/jeff/code/form_to_window/index.cfm
0
 
gamebitsCommented:
Thanks for the points and the grade

Gamebits
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now