Results 1 to 2 of 2

Thread: target="_blank" ???

  1. #1
    Join Date
    Jun 2009
    Posts
    1

    target="_blank" ???

    I have this input search field but i want when someone types a query and presses enter the results should appear in a new window. What do i change?

    Code:
    <form name="searchfrm2_mod" method="post" action="javascript: var searchword = document.searchfrm2_mod.mt_search.value;if(searchword=='search..'){searchword='';}document.location.href= 'http://www.website.com/index.php/Search.html?searchword=' + searchword ">
    <div class="search" align="left">
    <input id="search" class="inputbox" type="text" onkeypress="if(event.keyCode == 13){var searchword = document.searchfrm2_search.value;if(searchword=='search..'){searchword='';}document.location.href= 'http://www.website.com/index.php/Search.html?searchword=' + searchword }" onfocus="if(this.value=='search..') this.value='';" onblur="if(this.value=='') this.value='search..';" value="search.." size="40"/>

  2. #2
    Join Date
    Mar 2008
    Location
    Iowa
    Posts
    103
    found this:

    <form action="file.php" method="post" target="foo" onsubmit="window.open('', 'foo', 'width=450,height=300,status=yes,resizable=yes,scrollbars=yes')">

    - here.
    Radiant Web Design

    Music Reviews at my blog: Life By The Drop

Posting Permissions

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