Results 1 to 4 of 4
  1. #1

    How to Make a Search Form With Multiple Search Options (Pop-up Window)

    How to make a search form with multiple search options is a really useful article that I find here and I want to appreciate about that but still I need to do something with that code, what I need to do is show result page after search in a Pop-up window where I can set width and height attributes in the code.

    <form name="searchform" onSubmit="return dosearch();">
    <select name="sengines">
    <option value="" selected>Google</option>
    <option value="">Alta Vista</option>
    <option value="">Dogpile</option>
    <option value="">Yahoo!</option>
    <input type="text" name="searchterms">
    <input type="submit" name="SearchSubmit" value="Search">
    <script type="text/javascript">
    function dosearch() {
    var sf=document.searchform;
    var submitto = sf.sengines.options[sf.sengines.selectedIndex].value + escape(sf.searchterms.value);
    window.location.href = submitto;
    return false;
    somewhere in that JS code should make the result page a Pop-up with width and height but I cant edit the code the way I want could some of you guys do that please, thanks so much

  2. #2
    Administrator Dave's Avatar
    Join Date
    Sep 2004
    Te Awamutu, New Zealand
    Blog Entries
    Replace this line:

    window.location.href = submitto;
    With this:

    Dave Owen

  3. #3
    New Member
    Join Date
    Apr 2011
    Montgomery, Alabama
    Looks like I'd be loving my stay in this site. The admin looks and obviously is a geek in his profession.
    I always see answers everytime I had a question in mind, a person already asked them and been answered.

    I want to plug, but I have changed of mind.

  4. #4
    Thanks buddy, This article is really valuable for people like me who are looking for the option.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Subscribe to us on YouTube