Solved

How to give form script answer in a customizable window

Posted on 2004-10-19
2
350 Views
Last Modified: 2010-04-06
Hi:

My Scripts which process forms, normally give confirmation answers in a target=_blank window, as configured at <form> tag, like this:

<form action=/cgi-bin/formscript.cgi target=_blank>

Now, I would like to have this in a window I can customize with specific size, scrolling, etc. How to do this?

Thanks for help.

Mario./
0
Comment
Question by:multisites
2 Comments
 
LVL 35

Expert Comment

by:YZlat
ID: 12347210
<script language="javascript">
            <!--
                  function new_window(url) {
               var iWidth, iHeight
               iWidth = screen.width/2;
               iHeight = screen.height/2;
               //alert(iWidth);
               link = window.open(url,"myWindow","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=420,height=300,left=0,top=0");
          }
            //-->
            </script>
0
 
LVL 18

Accepted Solution

by:
arantius earned 50 total points
ID: 12347593
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question