|
var bTest1 = (document.test); |
||
|
|
||
|
var bTest1 = (document.test) ? true : false; |
||
|
|
||
|
Notice that in the first case, the result is undefined but in the second case, undefined is converted to the boolean false and thus the result is false. Generally, I use this method much more than the B/V/P method; it's simpler and in most cases works just as well. Now that we have looked at what can be done on the client side with javaScript, let's go on to see what can be done on the server side. Continue |
| © 1999
bnsDesigns |