Subj : a small javascript...
To : Digital Man
From : Access Denied
Date : Tue Apr 12 2011 08:58 pm
Re: a small javascript...
By: Digital Man to Internetking on Mon Apr 11 2011 04:22 pm
> Here's an example (untested):
> console.printfile("c:/slbbs/text/bbsrules.txt");
> if(console.noyes("Do you agree to the BBS rules"))
> bbs.hangup();
Just chiming in on this one trying to understand some simple javascript. So if
you use console.noyes and have bbs.hangup(); right after it, the no is
highlighted (as it being noyes rather than yesno) so that only happens if no is
used? And it would work vice versa? Now if yes is selected, it automatically
bypasses the bbs.hangup(); ? I'm just asking because I have very little coding
intelligence, and whatever I did have back in the 90s had a lot to do with
if/then or else statements in order to do what seems so easy in two lines with
javascript. :)