Home » Jquery » javascript – Open an external HTML file in browser, instead of downloading it

javascript – Open an external HTML file in browser, instead of downloading it

Posted by: admin February 22, 2020 Leave a comment

Questions:

I have a HTML blob path from azure Storage. I tried to open that html in a new window from javascript window.open method in my application. Each time it tries to download the file in Chrome instead of automatically open it in browser tab. It works fine in Edge.

I don’t want to return FileContentResult from my controller by setting the content-disposition=inline in C#.

I want to directly open that HTML via a URL using Javascript.

How to&Answer: