Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    19
    Member #
    14560
    Can anyone tell me why the following code will work in IE
    Code:
    window.moveTo(0,0);
      window.resizeTo(screen.width,screen.height);
    when I have it in the script main body, but when I wrap an if statement around it like
    Code:
    if (document.documentElement.clientWidth < 1003) {
      window.moveTo(0,0);
      window.resizeTo(screen.width,screen.height);
     }
    it doesn't work?

  2.  

  3. #2
    Junior Member
    Join Date
    Dec 2006
    Posts
    19
    Member #
    14560
    I have tried this on a 2003 Windows Server with IE7, and it works there. On an XP or Vista Box, it doesn't work. *shrug*

  4. #3
    Senior Member
    Join Date
    Jun 2005
    Location
    Atlanta, GA
    Posts
    4,146
    Member #
    10263
    Liked
    1 times
    Looks like it only first got added to IE in XP SP 2 (which may be the upgrade that put IE7 on XP).

  5. #4
    Junior Member
    Join Date
    Jun 2008
    Posts
    1
    Member #
    16922
    It's about to the screen resolution and IE version,IE7's width include the browser's border,but ie6 not!

  6. #5
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    You in strict or quirks mode?

    See http://www.howtocreate.co.uk/tutoria.../browserwindow

    Sean


Remove Ads

Posting Permissions

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

Search tags for this page

how to moveto resizeto in windows ie

,

ie7 resizeto

,

moveto resizeto not working in ie

Click on a term to search for related topics.
All times are GMT -6. The time now is 12:15 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com