Solved

form and new window

Posted on 1999-01-08
3
166 Views
Last Modified: 2010-04-09
how can i make a forms results open in a new window? I have a page that i use for my start page, i want to be able to have search engines direct on to it like the yahoo one, and have the search results open in a new window so my page can stay there the whole time without other pages taking that window. how do i do this??

-Daniel
0
Comment
Question by:th_c_man
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
jkeebler earned 20 total points
ID: 1841507
Put this between <head> and </head> at the top of the page:

     <script>
     <!--
          function search() {
                  newwindow = open("", "newwindow", "width=300,height=100,status=no,toolbar=no,menubar=no,scrollbars=no");
      //-->
     </script>

Then put this in the document (uses Yahoo for an example):

      <form method="GET" action="http://search.yahoo.com/bin/search" target="newwindow">
      <input type="text" name="p" value="" size=18>
      <input type="submit" name="name" onClick="search()">
      </form>

Hope this helps.
0
 

Author Comment

by:th_c_man
ID: 1841508
SO the key bit there being that I can specify a TARGET for the form results?

Let me try something, and I'll get back.
0
 

Author Comment

by:th_c_man
ID: 1841509
Ok. I've got what i wanted to work....

All i did was add
TARGET="_blank"
to the <form> tag and now it's ok.

Thanx anyway,

Daniel
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
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 …

630 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