Results 1 to 8 of 8

Thread: javascript help Please

  1. #1
    GWDGuy's Avatar
    GWDGuy is offline CAUTION: Non-exposure to the Son will cause burning!
    Join Date
    Feb 2002
    Location
    Oklahoma
    Posts
    1,903

    javascript help Please

    <script>

    function openpopup(){
    var popurl="calculator.htm"
    winpops=window.open(popurl,"","width=600,height=50 0,")
    }

    </script>

    <a href="javascript:openpopup()">Payment Calculator</a>

    How do I position the pop up where I want.. It keep putting it in the center of the screen and about 1/4 of the window is below the browser??

    thanks

    Robert
    -------
    ~Laus Deo

  2. #2
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,344
    Oh heck, been ages since Ive done anything like this, try adding the following:

    screenX=400,screenY=400,top=400,left=400

    so you will have something like this


    <script>

    function openpopup(){
    var popurl="calculator.htm"
    winpops=window.open(popurl,"","width=600,height=50 0, screenX=100,screenY=100,top=100,left=100")
    }

    </script>

    x and y are IE positions and top and left are netscape I think, but I am not sure about whether any commas or colons or stuff should go anywhere ..... and havent time to test it out as have to dash ......

  3. #3
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,344
    Ugh, juist had time to test and it doesnt work, ..... sorry, will play with it shortly .... can you change your height measurement or has it got to be 500 .....

  4. #4
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,344
    ugh! it does work ... hee, try this ... I was using measurements that sent it off the page


    <script>

    function openpopup(){
    var popurl="calculator.htm"
    winpops=window.open(popurl,"","width=600,height=50 0, screenX=50,screenY=50,top=50,left=50")
    }

    </script>

  5. #5
    GWDGuy's Avatar
    GWDGuy is offline CAUTION: Non-exposure to the Son will cause burning!
    Join Date
    Feb 2002
    Location
    Oklahoma
    Posts
    1,903
    Don't worry I could not get it either. So I cheated and used jbots and had it do the code.. I have been trying to hand code more but I guess I will let the programs do their thing.

    thanks

    Robert
    -------
    ~Laus Deo

  6. #6
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,344
    thats the best solution of all .... jbots!! didnt realise it positioned windows as well.... must take a deeper look at it.

  7. #7
    Join Date
    Mar 2002
    Location
    Montréal CANADA
    Posts
    2,149
    Wow for someone that uses 800x600 that is a big calculator!!! :bounce: :pullingyourleg:

  8. #8
    Join Date
    Feb 2002
    Location
    UK, Berkshire
    Posts
    18,344
    Its Roberts age - JJ - he needs large print versions now .....
    :roll:

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
  •