SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Apr 2002
    Posts
    395
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Open window in a frame

    Hi, I have the script below in my website. The thing is that I want the window to open in an inline frame, and NOT a new window, how can I do that?

    <script language="JavaScript">
    <!--
    function PlayerFind()
    {
    var nick = document.getElementById('rock').value;
    var version = document.getElementById('hast').value;
    open("http://stats.meelboaurne.net/index.php?name=" + nick + "&gametype=Supremacy&timeperiod=AllTime&what=stats&aox=" + version + "&gmt=0&button=Show+Me");
    return true;
    }
    //-->
    </script>

  2. #2
    SitePoint Wizard
    Join Date
    Mar 2001
    Posts
    3,537
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    document.frames["iframe_name"].location.href="somepage.htm";

  3. #3
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use the second parameter of window.open :

    window.open(yourPrettyComplexUrl, "NameOfYourFrame")


Bookmarks

Posting Permissions

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