The forward() method simulates the user clicking the Forward button on the browser.It returns the browser's page or frame to the next page or frame in its history.