I need this form to open in the same window, not a popup! Please help!

Discussion in 'HTML & Website Design' started by rucanunes, Apr 29, 2007.

  1. #1
    I need this script to display the results on the same window,
    not a new one:

    Anyone? Please?

    Thank you,
    Raul Nunes
     
    rucanunes, Apr 29, 2007 IP
  2. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Try this:

    window.open(url,'_top','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
    Code (markup):
     
    Webray, May 4, 2007 IP
  3. Vooler

    Vooler Well-Known Member

    Messages:
    1,146
    Likes Received:
    64
    Best Answers:
    4
    Trophy Points:
    150
    #3
    Ya possible.

    First thing first,

    Replace
    window.open(url,'','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
    HTML:
    With
    return url;
    HTML:

    Then

    <div align="left" id="results">Results showup here</div>
    HTML:
    when calling function

    document.getElementById('results').innerHTML = RechGoogle(blahblah);
    HTML:

    I hope it helps.

    regards
     
    Vooler, Jun 30, 2008 IP