"program" written in html/javascript

Aug 31, 2004
79
0
66
So I KNOW a lot of programmers don't consider html and javascript to be a programming language. However, I know it is possible to write a page in html/javascript code, and then change the .htm or .html extension to something else that will let it run on your computer as if it were a program, independent of a browser. Does anyone know what that extension you change the .htm to is??
 

DaiShan

Diamond Member
Jul 5, 2001
9,617
1
0
I mean java apps can run independent of a browser, they just need the VM installed, what exactly are you trying to do?
 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
There's no need to change the file extension. Just open the local file in your browser and it should work. This is not Highly Technical.
 

Matthias99

Diamond Member
Oct 7, 2003
8,808
0
0
Well, 'HTML' is *not* a programming language (no moreso than, say, MS Word documents are a programming language). Javascript is a scripting language built on top of HTML, which can be used to tell a supporting browser to do various things.

By definition, you need something (ie, a web browser) to interpret an HTML or HTML/Javascript file. Your OS only knows how to run executable files, which they are not. There's no way to 'run' an HTML file without a browser.

Java programs also need an interpreter (a Java Virtual Machine), unless one is built into the OS.