View Full Version : Need good Index reference

01-12-2003, 08:03 AM
I was wondering if anyone has found a really cool site that maybe list all the commands for javascript for example!

1. &&
2. <=
3. when to use ' or " ext...

the reason I am wondering is I am trying to figure out what && stands for bassically what it does

the code I am useing it in is the following

var ns=(document.layers);
var ie=(document.all);
var w3=(document.getElementById && !ie);

if(ie) {
doc = "document.all";
sty = ".style";
htm = "";

if(ns) {
doc = "document.layers";
sty = "";
htm = ".document";

if(w3) {
doc = "document.getElementById("") && !ie";
sty = ".style";
htm = "";


but the last one doesnt work i am trying to write the 3rd one yet I cant get it to work

Graeme Hackston
01-12-2003, 03:36 PM
I'm not really sure what your try to do. Are you trying to make a sniffer?

Here's a link for you


01-12-2003, 04:56 PM
&& is a logical operator, not a "command". It compares its two operands and checks if they are equal, and if so, the comparison returns true, and otherwise false.

For a reference site, try http://devedge.netscape.com/library/manuals/

01-13-2003, 09:24 AM
Thanks! Mordred That is exactly what I was looking for :)