Question: I am working on a client site where the client has requested that there be a button (basic a link) that links to another page like google, in case an abusive significant other busts into the room while a woman is reading about how to get assistance. The tricky part is that I am trying to figure out to link to a page that will open int he same windows, but no let you go back to the site by clicking the browser's back button, or show up in "history". I have built a lot of website and never heard of this being possible without the use of a custom browser extension or something.

My question is ..

Is there a way to do this? Possible some JS magic? Just wondering

Answer: 
You're looking for `location.replace()`.

```html
<button onclick='location.replace("https://www.google.com");'>Click to close</button>
```

Instead of creating a new entry in browser history, it replaces the current one.

Note: Unfortunately, it's blocked by [SO]. But just try it in your app. It does work. 

Second note: If you combine this with initially opening the *to be hidden* page in a new tab (`target="_blank"`) => **no history**.

---

However, the best method and advice for such cases is browsing in incognito: `Ctrl`+`Shift`+`N`. Once closed, it's gone, with ***all history in the session***. Pressing `Ctrl`+`Shift`+`T` in a new browser window won't bring the formerly opened tabs back. 

IMHO, this technique should be clearly detailed in the "Precautions" section of your client's website, also advising on having another "normal" browsing session opened in a background browser window, with a few neutral tabs open on subjects that wouldn't raise any suspicions: cooking recipes, things for children, cosmetics, etc...
I am not sure about your question.
But on click you can open Iframe 

```
<iframe src="www.google.com" style="border:none;"></iframe>

```