How to show powerpoint in iframe?

by aniya.jaskolski , in category: Javascript , 8 months ago

How to show powerpoint in iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer


by samara , 8 months ago


To show a PowerPoint presentation in an iframe, follow these steps:

  1. Publish the PowerPoint presentation: Save your PowerPoint presentation as a web page by clicking on "File" > "Save As" > "Browse" > choose "Web Page" (*.htm; *.html) as the saving format. Save it in a location where it can be publicly accessible.
  2. Create an HTML file: Open a text editor and create a new HTML file. Paste the following code into the HTML file:
<!DOCTYPE html>
    <iframe src="path-to-your-presentation.html" width="800" height="600"></iframe>

Replace "path-to-your-presentation.html" with the actual URL or path of the HTML file you saved in step 1. Adjust the width and height values of the iframe as per your requirements.

  1. Save the HTML file: Save the HTML file with an appropriate name, giving it a .html extension.
  2. Open the HTML file: Double-click on the HTML file to open it in a web browser. The iframe should display your PowerPoint presentation.

Note: Make sure that the location of your presentation file and the HTML file are publicly accessible on a server, as some browsers may not load local files due to security restrictions.