Borrowed from Javaneseꦗꦮ(jawa), possibly from Sanskritयव-द्वीप(yava-dvīpa, “island of barley”), used in reference to coffee grown on Java and nearby islands since at least 1850. The programming language (initially called Oak) is a reference to java, the blend of coffee from the island.
1996 October 6, Timothy Litwiller, “HOW TO MAKE A JAVA ALERT POP UP ON LOAD”, in comp.lang.javascript (Usenet):
1996 December 10, Cédric Bouckaert, “onBlur event handler with input fields”, in comp.lang.javascript (Usenet):
In the input tag I include the onBlur="myfunction()" which checks if the field is filled (displays an alert if necessary and resets the focus). If I leave the first field I get an java alert which says that field two should have a value and then a java alert which says that field one should have a value and then a java... get the picture ?
1997 January 7, Kenneth Roddy, “Java Alert Messages When Netscape Home Page Loads”, in comp.infosystems.www.browsers.ms-windows (Usenet):
1997 February 18, AG, “alert...is there a way of controling font size and style when java alert window opens”, in comp.lang.javascript (Usenet):
I created an alert window using java script, but I found the fonts too small. Is there a way of controling font size and style when java alert window opens.
2003 April 8, mpaulopes, “Passing values to a Java popup windows”, in macromedia.coldfusion.cfml_general_discussion (Usenet):
Usage notes
While referring to JavaScript as Java is technically incorrect, this usage occurs often enough to merit verifying which is meant in cases where it's not clear.
The translations below need to be checked and inserted above into the appropriate translation tables. See instructions at Wiktionary:Entry layout § Translations.