Javascript Section Index | Page 13
If I don't specify a language attribute in the SCRIPT tag, what's the default? Is it the same default for all browsers?
Currently, both Microsoft's Internet Explorer and Netscape Navigator (and probably most of the other less-known browsers) will use the latest supported version of JavaScript as the default SCRIPT ...more
What other FAQs on JavaScript are available?
Some of the others I've found that aren't too dated:
irt.org - JavaScript FAQ Knowledge Base
IDM Intranet JavaScript FAQ
DevEdge Newsgroup FAQ
more
How can you embed a JavaScript within servlets / JSP pages?
You don't have to do anything special to include JavaScript in servlets or JSP pages. Just have the servlet/JSP page generate the necessary JavaScript code, just like you would include it in a raw...more
How do I use JavaScript to detect what browser someone is using?
Try this JavaScript code :-)
<SCRIPT LANGUAGE="JavaScript">
<!--
beginRollover = false; // This handles a bug in Nav4.0x that executes the code too quickly.
// convert all ...more
How do I use JavaScript to detect what operating system someone is using?
Try this JavaScript code :-)
<SCRIPT LANGUAGE="JavaScript">
>!--
function checkOS() {
if(navigator.userAgent.indexOf('Linux') != -1)
{ var OpSys = "Linux"; ...more
How do I change multiple frames simultaneously with one click?
Every frame is considered to be a window object.
So you can change the frames contents using all of the window objects functions.
Now all the frames in a window are considered to be in a collecti...more
What is JavaScript?
JavaScript is not Java.
From Netscape's documentation:
"JavaScript is Netscapes cross-platform, object-based scripting language for
client and server applications. JavaScript lets you c...more
Where should I place my <script> code in my HTML document?
Short answer:Place it wherever you need it.
Long answer:
JavaScript code is loaded - and immediately executed (!!), if it's not the definition of a variable or function - in the same sequence it a...more
Which is the latest version of JavaScript?
From Netscape's site:
"Netscape announces the availability of JavaScript 1.5, both embedded within Netscape 6 and as free, open source,
embeddable JavaScript engine components implemented in...more
How can I add something to the browser's Favorites list?
Call the AddFavorite method like this:
<A href="javascript:window.external.AddFavorite('http://www.jGuru.com','jGuru')">Add jGuru to your Favorites</A>
For instance:
A...more
How can I disable a form submit button so that it can't be hit twice in quick succession to submit a form?
It is quite simple to do that. Just call a JavaScript function on clicking the submit button to disable the submit button. So you cannot click it the next time . Here is the sample code to do that...more
How do I write to the browser's status line from JavaScript?
This is pretty simple.
Cut and paste the following code.
<HTML>
<HEAD>
<!--Author: shyamprasadkr@yahoo.com -->
</HEAD>
<BODY>
Hi
<SCRIPT>
window.status = &qu...more
What Usenet newsgroups are there for JavaScript-related topics?
There are several available, some general purpose, some langauge specific:
comp.lang.javascript
de.comp.lang.javascript
fj.lang.javascript
japan.comp.lang.javascript
netscape.devs-javasc...more
If I want to distribute a Java game applet and let many sites host the applet, how can I maintain a common high score list?
As long as the applet is untrusted, the only way you can do this is through sending the new high scores through the Applet context's showDocument():
getAppletContext().showDocument(url, "_bl...more
Where can I download the [netscape.javascript] JSObject class from to compile my applets that use LiveConnect?
The Java Plug-in 1.3 ships netscape.javascript in a JAR file called JAWS.JAR. To compile an applet which uses JSObject, just add JAWS.JAR in the CLASSPATH before compilation.
If you don't have the...more