> The entire browser ecosystem started out closed source.
That is completely, 100%, untrue and not remotely historically accurate. WorldWideWeb (the first web browser) was public domain. Lynx came out in 1992. Mozilla was open sourced in 1998. There was never a time when the "entire" browser ecosystem was closed source. It certainly didn't start that way.
> Even JavaScript was written to interact with closed source Java Applets.
> Netscape decided to add a programming language to Navigator. They pursued two routes to achieve this: collaborating with Sun Microsystems to embed the Java language, while also hiring Brendan Eich to embed the Scheme language.
> The goal was a "language for the masses", "to help nonprogrammers create dynamic, interactive Web sites". Netscape management soon decided that the best option was for Eich to devise a new language, with syntax similar to Java and less like Scheme or other extant scripting languages.
> [...]
> The choice of the JavaScript name has caused confusion, implying that it is directly related to Java. At the time, the dot-com boom had begun and Java was a popular new language, so Eich considered the JavaScript name a marketing ploy by Netscape.
Some people might have used it for the purpose you claim, but that's not why it was invinted.
> Netscape decided to add a programming language to Navigator. They pursued two routes to achieve this:
And the reason for that two language approach is given in the linked source:
> We aimed to provide a “glue language” for the Web designers and part time programmers who were building Web content from components such as images, plugins, and Java applets. We saw Java as the “component language” used by higher-priced programmers, where the glue programmers—the Web page designers—would assemble components and automate their interactions using [a scripting language].
Earlier sources clearly state that Java was intended as the primary language and JavaScript merely acting as glue.
I've used the "glue language" phrase myself, but when I did Mocha in May 1995 for Netscape 2, it was to make an HTML-embedded scripting language that could be useful by itself. LiveConnect, by which JS could call Java and vice versa, came in 1996 for Netscape 3.
The "Java" hype dictated the marketing-sought JavaScript name, but JS was useful by itself with the DOM level 0, which I hacked in extreme conditions in the summer of 1995, well before any "merely acting as glue" role for Java applets or components. That "just glue" option came late, and ultimately failed. JS survived and in the end took over from Java and other plugins.
That is completely, 100%, untrue and not remotely historically accurate. WorldWideWeb (the first web browser) was public domain. Lynx came out in 1992. Mozilla was open sourced in 1998. There was never a time when the "entire" browser ecosystem was closed source. It certainly didn't start that way.
> Even JavaScript was written to interact with closed source Java Applets.
No, it wasn't. From WP (https://en.wikipedia.org/wiki/JavaScript):
> Netscape decided to add a programming language to Navigator. They pursued two routes to achieve this: collaborating with Sun Microsystems to embed the Java language, while also hiring Brendan Eich to embed the Scheme language.
> The goal was a "language for the masses", "to help nonprogrammers create dynamic, interactive Web sites". Netscape management soon decided that the best option was for Eich to devise a new language, with syntax similar to Java and less like Scheme or other extant scripting languages.
> [...]
> The choice of the JavaScript name has caused confusion, implying that it is directly related to Java. At the time, the dot-com boom had begun and Java was a popular new language, so Eich considered the JavaScript name a marketing ploy by Netscape.
Some people might have used it for the purpose you claim, but that's not why it was invinted.