Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    wanting search results to open in target frame

    Hello everyone i am wanting the search results for my Js search engine to open into a target frame named "main" and i cant figure out how to do it any help is apreciated here is the code below very short




    // ---------- script properties ----------


    var results_location = "results.html";


    // ---------- end of script properties ----------


    function search_form(jse_Form) {
    if (jse_Form.d.value.length > 0) {
    document.cookie = "d=" + escape(jse_Form.d.value);
    window.location = results_location;
    }
    }

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,960
    Thanks
    0
    Thanked 236 Times in 233 Posts
    Change this line:

    window.location = results_location;

    to:

    window.open(results_location, "main");

  • #3
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Works perfectly thank you


  •  

    Posting Permissions

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