Can a file that opens in the browser run as a web page? No. Whatever is shown in place is shown as a file, never run as a web page. More: Downloading, What opens in the browser and what downloads