# Open HTML file from Perspective

**URL:** <https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227>\
**Category:** Ignition\
**Created:** [January 13, 2021, 9:30pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227 "2021-01-13T21:30:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjohnson](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mjohnson](https://forum.inductiveautomation.com/u/mjohnson)\
**Post date:** [January 13, 2021, 9:30pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/1 "2021-01-13T21:30:25Z")

</div>

So I take it opening a HTML file within perspective scripting can not be done? At least I can not get it to work with the system.net.openURL function or anything else for that matter.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 13, 2021, 10:15pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/2 "2021-01-13T22:15:32Z")

</div>

You could pair `system.perspective.navigate` (with the `url` parameter) with the `WebDev` module, which lets you run arbitrary Python scripts upon web requests.

---

<div class="post-metadata">

**Author:** ![mjohnson](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mjohnson](https://forum.inductiveautomation.com/u/mjohnson)\
**Post date:** [January 13, 2021, 10:18pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/3 "2021-01-13T22:18:10Z")

</div>

Will this work for a HTML file that is saved on a HD

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 13, 2021, 10:40pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/4 "2021-01-13T22:40:36Z")

</div>

Where is the HTML file you intend to open? Web browsers don’t generally allow you to access local files, so the most you can do is open a browser tab with the `file` protocol and leave it to the browser to decide how to open it. You would also need to know the exact path to the file, and it would need to present on each device running your Perspective session.

The WebDev module allows you mount a specific file or folder on the _gateway_ and serve it up using Ignition’s webserver, which allows you to use it as a regular webpage in the browser.

---

<div class="post-metadata">

**Author:** ![mjohnson](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mjohnson](https://forum.inductiveautomation.com/u/mjohnson)\
**Post date:** [January 13, 2021, 10:57pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/5 "2021-01-13T22:57:30Z")

</div>

How do you mount a specific file or folder on the gateway and server it up using Ignition’s webserver?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 14, 2021, 4:18pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/6 "2021-01-14T16:18:44Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/WebDev#WebDev-MountedFolder](https://docs.inductiveautomation.com/display/DOC81/WebDev#WebDev-MountedFolder)

---

<div class="post-metadata">

**Author:** ![mjohnson](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@mjohnson](https://forum.inductiveautomation.com/u/mjohnson)\
**Post date:** [January 14, 2021, 5:33pm UTC](https://forum.inductiveautomation.com/t/open-html-file-from-perspective/42227/7 "2021-01-14T17:33:09Z")

</div>

Thank you
