Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    EUROPE
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to move window ?

    How to move whole window ?
    - like when you click and drag the title bar
    when window is restored.
    (of course I mean when you click and drag some area in the BODY)


    Best Regards

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,033
    Thanks
    0
    Thanked 248 Times in 245 Posts
    This method moves the window's left edge and top edge to the specified x and y co-ordinates, respectively.

    window.moveTo(Xposition,Yposition);


    This method is used to move the window a specified number of pixels in relation to its current co-ordinates.

    window.moveBy(horizPixels,vertPixels);

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    EUROPE
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx

    but, I need to be able to move (drag) window (FULLSCREEN)
    with mouse click & drag on specific spot - like DIV or ...

    There is good example in chromeless window but I don't know how
    to isolate it from whole chromelles script. (http://www.microbians.com/)

    I don't want to use chromeless script for fullscreen site,
    I prefer simple fullscreen command:
    function fullwin() {
    maxwin = window.open('html/english/start.html','max','fullscreen=yes');
    maxwin.resizeTo(600,400);
    }

    (for IE only)


  •  

    Posting Permissions

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