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

  • Home
  • SEARCH
  • 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 7811067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:01:27+00:00 2026-06-02T04:01:27+00:00

I have a piece of JavaScript code that maximizes browsers window in IE but

  • 0

I have a piece of JavaScript code that maximizes browsers window in IE but I doesn’t make any changes when I work with Chrome.

This is the code I am talking about.

window.moveTo(0, 0);
if (document.all) {
     top.window.resizeTo(screen.availWidth, screen.availHeight);
}
else if (document.layers || document.getElementById) {
     if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth) {
          top.window.outerHeight = screen.availHeight;
          top.window.outerWidth = screen.availWidth;
     }
}

Does anyone know a good workaround or any other solution to maximize a popup window.

Thank you for your help

  • 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-02T04:01:31+00:00Added an answer on June 2, 2026 at 4:01 am

    You can try it this way:

    top.window.moveTo(0,0); 
    if (document.all)
    { 
        top.window.resizeTo(screen.availWidth,screen.availHeight); 
    } 
    else if (document.layers || document.getElementById) 
    { 
        if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth)
        {
            window.resizeTo(top.screen.availWidth, top.screen.availHeight);
        } 
    }
    

    Note: Browsers will whine about it (and visitors too likely), asking the visitor if he/she wants to allow blocked content, etc. But I guess that’s another issue.

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

Sidebar

Related Questions

I have a piece of Javascript code that uses an XHR to POST data
Does anyone have a piece of JavaScript code that creates a cookie and stores
I have a piece of javascript code that I wrote to grab the html
I have a piece of javascript code that I want to execute on the
I have a JavaScript widget (a piece of embedded JS and HTML code) that's
I have this piece of javascript code that I am trying to understand return
I have a piece of code that is working fine in IE, but it
I have piece of JavaScript code which cycles through form elements and builds an
I have a piece of javascript code as follows: var data = { ...
I have this piece of code in javascript: var catId = $.getURLParam(category); In my

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.