How to make links open in a new window from PowerPoint's HTML
Problem
You have a link in your presentation that points to, say, a PDF file or a web page. When you play the presentation in PowerPoint, clicking the link opens the external file in a new window.
But when you save your presentation as a web page from PowerPoint, the links open in the same browser window.
Solution 1
For links that are to open in the browser, edit the HTML files that PowerPoint has created:
- After saving as, let's say, TEST.HTM, you'll have TEST.HTM and in the same folder, a sub-folder full of support files called TEST_files.
- Open that folder and you'll see a Slide000xx.htm file for each slide in the presentation. Open each file in notepad or a similar text editor, find each instance of the text:
_parent
- Change it to:
_new
- Save the file.
Solution 2
WebTech411 posted this neat trick on the PowerPoint newsgroup.
Instead of linking to, let's say, a PDF, you'll create a special small HTML file and link to that instead. The HTML file contains javascript that triggers when the HTML page loads and opens a new window on the PDF.
Here's what your HTML file should look like:
<html> <head> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin redirTime = "100"; redirURL = "BB8151.pdf"; function redirFile() { self.setTimeout("self.location.href = redirURL;",redirTime); } // End --> </script> </head> <body onLoad=redirFile()> </body> </html>
Solution 3
If your presentation doesn't depend heavily on animation, give the PPTools PPT2HTML add-in for PowerPoint a try. One of its options is to make every link open in a second window or to make every link open in a unique new window.