|
-
Jul 17th, 2001, 11:00 AM
#1
Thread Starter
Evil Genius
Bit Of JavaScript For You !
Can ANYONE please explain what this is going on about please ?
Code:
if (!document.layers&&!document.all)
event="test";
Thank you !!!
-
Jul 17th, 2001, 02:04 PM
#2
Frenzied Member
Ok..
if document.layers then it's a Netscape Browser
if document.all then it's IE
so to translate:
If (Not NS And Not IE) Then
event = "test"
It's just checking to make sure your using one or the other. If not, it sets the event variable to "test".
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
Jul 18th, 2001, 02:57 AM
#3
Thread Starter
Evil Genius
Thank you !
Seen it on several pages, makes sense now !
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|