Solved

How to give form script answer in a customizable window

Posted on 2004-10-19
2
342 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now