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 8875657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:01:41+00:00 2026-06-14T19:01:41+00:00

I fail to understand what the argument replace does. From the documentation: Optional. If

  • 0

I fail to understand what the argument replace does. From the documentation:

Optional. If set, the history entry for the new document inherits the history entry from the document which opened this document

Doesn’t it mean that without replace the newly opened document will be added to history with its state?
This is how I’m opening it :

var newDoc = document.open("text/html");
newDoc.write(file);
newDoc.close();

And basically what I want is for the history buttons to remember those. I’ve been working with history.js and wondered if this could save me some time.

  • 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-14T19:01:42+00:00Added an answer on June 14, 2026 at 7:01 pm

    It seems you’re citing w3schools, which is not very reliable. The MDN documentation page doesn’t even mention that argument, and the W3C specification states that document.open doesn’t take any parameters (not even the content-type you’re passing as the first argument). So there’s not much hope that passing a value for replace is going to work cross-browser.

    That being said, what I understand from the cited excerpt is the exact opposite of what you said: if you pass true, the new page will inherit the history of the opener document; if you don’t, it starts a new history thread. Makes sense?

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

Sidebar

Related Questions

I'm trying to understand why the following test does not fail. In this simplified
I fail to understand the input parameters of the CIFilter named CITemperatureAndTint. The documentation
I have read the documentation for this element but still fail to understand what
I fail to understand is why does the code print '3' in VS2010 (release
I'm getting a weird behaviour with javascript which I fail to understand: my application's
I fail to understand why this code won't compile ExecutorService executor = new ScheduledThreadPoolExecutor(threads);
I just fail to understand why couchbase does not provide a php extension for
I am trying to understand the specs , but fail to understand the first
While I understand the value of implementation/interface distinction, I fail to see why most
How can this test fail? [TestMethod] public void Get_Code() { var expected = new

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.