SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello!

    Could anyone tell me how to code an html page so that it opens to a specific size?

    Thanks for the help.

    Onvalavoir

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this will get you started. Put this in the HEAD tag of your page:

    <script language="javascript">
    <!--

    function PopUp(){
    window.open('yourpage.html','newWin','scrollbars=no,toolbar=no,width=200,height=200');
    }

    -->
    </script>

    and then call it like so:

    <a href="javascript:PopUp();">Open a new Window</a>

    Just so you know, make sure to take out the space between java and script.

    All you need to do is change the values in the line above. Change the width and height and then you can also change the page that you call in the script.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •