57 ms·
I do wonder if back in the day, the JVM had access to the DOM in the same way Javascript did, what would have happened?
by protomyth 11y ago
I do wonder if back in the day, the JVM had access to the DOM in the same way Javascript did, what would have happened?
- saurik 11y agoJavaScript, near if not at its inception, had native access to Java, and apparently at least quite good access in the other direction (though I don't have personal memory of this part). You could import packages and bridge seamlessly between the VMs using LiveConnect. The history of this is that Netscape and Sun were working closely together. That's why it got to be called JavaScript. https://developer.mozilla.org/en-US/docs/Archive/Web/LiveConnect https://developer.mozilla.org/en-US/docs/Archive/Web/LiveCon...
- protomyth 11y agoJava / JVM never had access to the webpage like JavaScript. You could not write a program in Java to replace your JavaScript. It was applets or nothing.