The focus method of the window object attempts to bring the target window to the front and bring focus to it.