Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Location
    Dillon, CO
    Posts
    315

    basic html open in new window?

    Yeah I dont do html much .. just frontpage. Keep the laughing to yourself ... Lets say my link is google.com/google.php I want someone to click on a link and have it open in a new window, how can i make it decide what size to open the window, and is it possible to have the new window centered? Thanks, Chris.

  2. #2
    Join Date
    Feb 2003
    Posts
    70
    You would want to look at Javascript for this.

    http://www.javascripter.net/faq/openinga.htm

  3. #3
    If just open new window just add a target="_blank" to your <a href

    If open new window plus more then:

    <script language="Javascript" type="text/javascript">
    <!--
    function newwindow()
    {
    window.open("http://www.yahoo.com","newwindow","height=300,width=520,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
    }
    //-->
    </script>

    <a href="JavaScript:newwindow();">Open new window</a>
    OCEAN HOST
    www.ocean-host.com
    Get Online. Reach Worldwide.
    Check our uptime

  4. #4
    Join Date
    Jan 2005
    Location
    Dillon, CO
    Posts
    315
    b i n g o.

    thanks ocean.

    just wondering, any way to center it?

Posting Permissions

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