Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7729907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:05:18+00:00 2026-06-01T06:05:18+00:00

I have a website that I built a while ago. All of sudden, without

  • 0

I have a website that I built a while ago. All of sudden, without changing any code, the was centered popup window has now lost its size and it’s center alignment and sits in the top left corner about 50 x 50 pixels!

Does anybody know what has caused this? Has Google Chrome changed something which has affected my script? It still works in all other browsers and used to work in Chrome, just not recently.

My caller:

onclick="wOpen('https://mydomain.com/mypage.html', 'preview', 800, 500); return false;"

My Function

function wOpen(url, name, w, h) {
  w += 32;
  h += 96;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;

  if (wleft < 0) {
    w = screen.width;
    wleft = 0;
  }
  if (wtop < 0) {
    h = screen.height;
    wtop = 0;
  }

  var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'left=' + wleft + ', top=' + wtop + ', ' +
  'location=no, menubar=no, ' +
  'status=no, toolbar=no, scrollbars=yes, resizable=no');
  win.resizeTo(w, h);
  win.moveTo(wleft, wtop);
  win.focus();
}

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:05:19+00:00Added an answer on June 1, 2026 at 6:05 am

    There seems to be something wrong with resizeTo() and moveTo() in chrome.

    Usually chrome should ignore those methods, but now somehow they are executed and the window moves to a unknown place and gets a unknown size.

    I don’t see the window at all, but in the taskbar I see that it must be somewhere, I’m also able to maximize it.

    Suggestion:
    Make a condition to prevent the lines from executing in chrome.

    better Suggestion:
    Don’t use these methods at all.

    Also see: The javascript "resizeTo" function not working in Chrome and Opera

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have client that built a website that is part static html and part
I have an ASP.NET website that I built that has grown considerably in size
I have built a bulk email sending website for a client that is required
I have a website built on Joomla.Everything seemed to be going fine when all
I have a website/web app built with jquery mobile that I am trying to
I have a website project that I want to build using CruiseControl.net. On one
So basically I have website that has names of cities that can be checked
I have a website that has approx 1000 different strings in a mysql database
I have a website that uses JSP as its view technology (and Spring MVC
I have a website that tells the output is UTF-8, but I never make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.