Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2003, 07:03 AM   PM User | #1
Crash1hd
Regular Coder

 
Join Date: Jul 2002
Location: 51° 03' -78" N -114° 05' 72" W
Posts: 617
Thanks: 0
Thanked 0 Times in 0 Posts
Crash1hd is an unknown quantity at this point
Need good Index reference

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
Crash1hd is offline   Reply With Quote
Old 01-12-2003, 02:36 PM   PM User | #2
Graeme Hackston
Regular Coder

 
Join Date: Jun 2002
Posts: 624
Thanks: 0
Thanked 0 Times in 0 Posts
Graeme Hackston is an unknown quantity at this point
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/...ipt_index.html
Graeme Hackston is offline   Reply With Quote
Old 01-12-2003, 03:56 PM   PM User | #3
mordred
Senior Coder


 
Join Date: Jun 2002
Location: frankfurt, german banana republic
Posts: 1,848
Thanks: 0
Thanked 0 Times in 0 Posts
mordred is an unknown quantity at this point
&& 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/
mordred is offline   Reply With Quote
Old 01-13-2003, 08:24 AM   PM User | #4
Crash1hd
Regular Coder

 
Join Date: Jul 2002
Location: 51° 03' -78" N -114° 05' 72" W
Posts: 617
Thanks: 0
Thanked 0 Times in 0 Posts
Crash1hd is an unknown quantity at this point
Thanks! Mordred That is exactly what I was looking for
Crash1hd is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:05 AM.


Advertisement
Log in to turn off these ads.