...

View Full Version : Need good Index reference



Crash1hd
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

http://www.devguru.com/Technologies/ecmascript/quickref/javascript_index.html

mordred
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/

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum