Open files in new window.

  • 1
  • Question
  • Updated 11 years ago
  • Answered
I want to password protect a particular page, which I did. However, I have a pdf file on this page and when I open it, I cannot use the back button to go back to the site. How can I get files to open in a new window when people click on the links? The files are located in File Manager.
Photo of joyce


  • 8 Posts
  • 0 Reply Likes

Posted 11 years ago

  • 1
Photo of Emmy


  • 5892 Posts
  • 299 Reply Likes
It is possible to open a file in a new window, but it will take a bit of html. Please follow these instructions:

1. Drop a text widget onto the page
2. Type the text that you want a user to be able to click on
3. Click the Insert Link image form the Edit Toolbar
4. Choose the very last option to link to a file and choose the file from your computer or your File Manager
5. Click Ok
6. Click on the Edit html icon on the Edit Toolbar
7. You will see text that looks something like this
<!--<p><a href="resources/myfile.pdf">Text on the Page</a></p>-->
8. Right after the last " you will need to put this in target="_blank"
9. So now it looks like this <!--<p><a href="resources/myfile.pdf" target="_blank">Text on the Page</a></p>-->

Please let us know if you need further assistance.