How can you center a web browser window in the middle of the display area?

What will be an ideal response?


One of the more common uses of the Screen object properties is to center a web browser window in the middle of the display area. For windows generated with the window.open() method, you can center a window when it first displays by assigning values to the left and top options of the options argument. To center a window horizontally, subtract the width of the window from the screen width, divide the remainder by two, and assign the result to the left option. Similarly, to center a window vertically, subtract the height of the window from the screen height, divide the remainder by two, and assign the result to the top option.

Computer Science & Information Technology

You might also like to view...

The default outline style is a ____ line.

A. solid B. dotted C. dashed D. dashed and dotted

Computer Science & Information Technology

A ____________ is a loop inside another loop.

a. internal loop b. nested loop c. fixed loop d. multiple loop

Computer Science & Information Technology

Use the Database Documenter to create a report that contains detailed information about the ________ in a database, including macros

Fill in the blank(s) with correct word

Computer Science & Information Technology

Match the following features or parts of Office 2013 to their descriptions:

I. contextual tab II. Mini toolbar III. title bar IV. gallery V. status bar A. easy access to formatting commands B. contains groups of commands related to a specific, selected object C. set of selections when you click a More button D. contains information relative to the open file E. includes file name and application

Computer Science & Information Technology