@Kyuunul when working with booleans, an easier way is to simply write "if (confirm)" and "if (!confirm)". The former checks if the boolean exists and/or is defined positively. The latter checks if the boolean doesn't exist (undefined/null) or is defined negatively
I want to clear a cookie if the host clicks my button but I need help doing that, do I just recall the cookie but tell it expire days to 0 or null or have an assasin come onto your computer and delete the file???!?!?!?!?!!?!?!?!?!?!
this guys tutorials are the best and he's friggin hillarious
ianwjensen 2 months ago
"...make sure its inside your body and not your head"
jakewebbing 4 months ago
but how do you get text on a button? like on an alarm box, like yes or no options?
LordShiding 6 months ago
@LordShiding You gotta use an if :D
like so
var confirm=confirm("Are you sure you want to procceed ?");
if(confirm==true){
alert("You pressed yes/ok")
}
else{
alert("Your pressed no/cancel")
}
}
Kyuunul 4 months ago
@Kyuunul when working with booleans, an easier way is to simply write "if (confirm)" and "if (!confirm)". The former checks if the boolean exists and/or is defined positively. The latter checks if the boolean doesn't exist (undefined/null) or is defined negatively
B1KMusic 3 weeks ago
You are a GOD!!!
stumblinbear 6 months ago
It is normally better to call a predefined function from the event listener, especially if it calls more than one line.
MattTheroux 6 months ago
dude, ur tutorials are OUTSTANDING !!!!!!!
jeff28emailspam 6 months ago 2
Comment removed
jeff28emailspam 6 months ago
Comment removed
jeff28emailspam 6 months ago
If you want to click the butten more than once add "return" :)
bjoer123 6 months ago
the quotations are such a mess.thanks 4 pointin out the error.
cooltanmay92 7 months ago
After I click the button it disappears plz help
davecoolkid 7 months ago
i always thought your name was bob for some reason XD
THEXMAN4509 7 months ago
I already know this :D BTW You can import your buttons!
funnywarnerbox300 9 months ago
How do you repeat the button? I put in a function for onClick but after clicking it once, the button disappears...
Rayner97JAP 9 months ago
very cool! Thanks: good job pointing out the string issues quotation marks inside qotation marks....subscribed
46ace 10 months ago
Your name is bucky????
just wondering xD
timboiscool 10 months ago
onClick=alert("test") works fine
TheScars75 11 months ago
wheres altq2001.. say thank you to bucky. he made your request!
HawxTeamDelta 1 year ago 2
LOL I'm gonna puh in a basic inpuh buhon. Get it.
sondano 1 year ago
I want to clear a cookie if the host clicks my button but I need help doing that, do I just recall the cookie but tell it expire days to 0 or null or have an assasin come onto your computer and delete the file???!?!?!?!?!!?!?!?!?!?!
mylifeis2coolcmc2 1 year ago
do this, computer!
baaad computer!
lazzermusen 1 year ago
Thanks u, nice tutorial
fullyit 1 year ago
you truly are doing a good job....
pokiri4005 1 year ago
can someone tell me, how to read from a textbox ?
AnewBANDareHERE 1 year ago
I wanna have a tuto on how to make a rocket. so i can fly to the moon!
a real one, ffcourse!!
XRaYNL 1 year ago
@XRaYNL Well I can make a self destruct button =D
PJSkitszels 1 year ago
@PJSkitszels Hmm, That will do as well...
If i stuff the surrounding full with explosives, i'll get blasted to the moon anyway.
XRaYNL 1 year ago
@XRaYNL Hahah Good thinking
PJSkitszels 1 year ago
bucky?? upgraded to vista??? shame on you....I expected more from a great teacher lmao
Riddlerx333x 1 year ago
i see you upgraded your OS........ thats pretty fresh
yoyodogg96 1 year ago
You're Good Teacher. Now i'm working with javascript very easyly
thusuba 1 year ago
If you put value="I'm a button" after the onclick the button will have a name.
pepparn123 2 years ago 17
@pepparn123 DUHHH!
kennysc12 1 year ago
@kennysc12
That was one year ago -.- I'm better now lol :P
pepparn123 1 year ago
@pepparn123
before the onClick and it will work
hoozy20 5 months ago
@pepparn123 it can be anywhere. It's actually easier to just put < button instead of < input
B1KMusic 3 weeks ago
Is your website under construction?
007rajuroger007 2 years ago
how do you make it so that if you have a certain radio button checked to pop up a window saying you have(this certain) radio button checked? like
Dell:()
Hp: ()
Toshiba ()
[Submit!]
and you have dell checked make it say "You Like Dells."
or something like that.
rockozzy1234 2 years ago
you would have to setup an observer that calls a function when a radio button is clicked, and that function would alert the value of the object.
patrick99e99 2 years ago
I like your voice.
TinCanOwnage 2 years ago
@TinCanOwnage He does have a calming voice.
redhotchilipepperize 1 year ago
Would you please do a video on unobtrusive js? Thanks.
thetawaves48 2 years ago
script?
MeXRochi 2 years ago
con*
MeXRochi 2 years ago
mmmmm pero esto es html... mmm se puede utilizar java?
MeXRochi 2 years ago
it does work without ";" at the end.
ivanjakovl 2 years ago
hey u got vista!
fireguy1919 2 years ago
you got a vista
value ="text here"
put that^ in the buttons script to name it
Stardust342 2 years ago
Thanks Rat, I was wondering why he used window.alert
=)
Xjkjk3264X 2 years ago
because it's smarter to teach newbies the right way to do it...
SamDGoodrick 2 years ago
more liek thiss
Wowccraft 2 years ago
we need more stuff like that :) Great job !
Mitgardxxl 2 years ago 2
Tutorials that cover some stuff thats a little more advanced
rohane282930 3 years ago
if you dont learn basics youll kill yourself trying to learn the advanced stuff
letmekilluplz 3 years ago 23
please do more javascript tutorials.
rohane282930 3 years ago 2