Results 1 to 2 of 2

Thread: Load results of submitting form in new windows with Javascript?

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Sussex, England
    Posts
    45
    At the moment i'm using this code to load the results of a search into a new window. I really need to be able to format the properties of the windows so that it looses the toolbar and has a fixed size etc. Can anyone tell me how to modify the existing code with Javascript to do this?

    <form target="_blank" method="get" action="http://search.atomz.com/search/">

    Regards
    Ian.
    Ian Clarke BSc (Hons) - Web Applications Programmer
    Ricardo Consulting Engineers Ltd.
    Email : [email protected]

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    is this any help?

    Code:
    <HTML>
    <head>
    <script language=javascript>
    var i = 0;
    function doIt()
    {
    	window1=window.open('','newWin','scrollbars=yes,width=175,height=300')
     	window1.location.href = "http://www6.ewebcity.com/coolsite/some.asp?txt1=" + document.frm1.txt1.value + "&txt2=" + document.frm1.txt2.value;
    }
    </script>
    </head>
    <BODY>
    <form name=frm1>
    
    <input name=txt1>
    <input name=txt2>
    
    <INPUT TYPE="BUTTON" VALUE="Go" onClick="doIt()">
    
    </form>
    </body>
    </HTML>
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width