Then, when I click on another link that does open a file in the browser a PDF when I click the back button, the text is gone, but it is what allows my program to know what view to be on.
Use window. This will open up a new tab temporarily to download the file then close it leaving the original page and URL in tact. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow.
I think it depends on the browser. For instance, I've noticed that with Chrome, opening a. Whereas, a. It only opens a new tab for. Sign up or log in Sign up using Google.
Accept all cookies Customize settings.