Login Register






Tutorial Alert boxes filter_list
Author
Message
Alert boxes #1
I'm back to doing coding tutorials, I haven't done one since before DZ merged w/ Codecommunity so I'm a little rusty.

Let us begin, fellow peanuts~

What is Java?

Java is a basic necessity for a computer to run scripts specifically formatted .js. .JS is a javascript document, it requires Java and is used on almost every website. It does alert boxes, interactives, etc.

So sexy beef~

Code:
<Html> <script>

The script command in the html defines the script of java, php, ajax, or whatever script follows.

You could also link it by using the same sscript command with a src suffix.

Code:
<script src="
Your-js-file-here
Code:
.js"></script>

So what's the script, Duubz!?!

Code:
function
functionName
Code:
() { alert("
This is the alert
Code:
"); }

It doesn't matter if it's it's own doc, or in the script command, either will work fine.

Linking it to HTML so it will actually pop up.

Code:
<button type="button" onclick="functionName()" value="
ValName
Code:
">
Button text
Code:
</button>

Just remember that capitals do make a difference. Copy this exactly, and edit accordingly to the cyan.

Note that the function name ( functionName() ) must be the same as in the js, and html. It's case sensitive too.

~ GnBA Duubz
[Image: BXqGARG.png]


RE: Alert boxes #2
Looks like a good tutorial. Thanks.


RE: Alert boxes #3
This is JavaScript, not Java. What this is for is websites, this can be put in with HTML/PHP but Java is something totally different.
For example, Minecraft is made in Java.
[Image: signature.png]


RE: Alert boxes #4
JavasScript, not Java.

Second, who the fuck does a tutorial on something as simple as alert boxes?


RE: Alert boxes #5
Good tutorial, very explicit for newbies!
Thanks for the time you dedicated to make this tutorial.
[Image: 5IN9GdK.png]


RE: Alert boxes #6
This is ridiculously basic Javascript. I guess it might help some people, though.
[Image: 7ajmN5P.jpg]

Telegram: Oni_SL (Link)


RE: Alert boxes #7
Oni, yet it's a good tutorial, I think you should add more prefix like Tutorial - Advanced, Tutorial - Medium, Tutorial - Begginers... this would be easy to know where to start from Biggrin
[Image: 5IN9GdK.png]


RE: Alert boxes #8
(10-12-2013, 08:19 PM)Cyanide and Cynicism Wrote: JavasScript, not Java.

Second, who the fuck does a tutorial on something as simple as alert boxes?

I do. I make small five minute tutorials that introduce the language small bits at a time to a newcomer in the computer language writing community.

And Javascript requires java, so either way it's basically the same thing. Java is just a platform to run games off of. Not all are games, it was just an example. Javascript is the language that optimizes the use of java in it. For example; if you code a minecraft plugin for say bukkit, then you will use a lot of common commands. The commands are the same between the two, and both can be used.
[Image: BXqGARG.png]


RE: Alert boxes #9
(10-13-2013, 02:46 AM)Duubz Wrote: And Javascript requires java, so either way it's basically the same thing. Java is just a platform to run games off of. Not all are games, it was just an example. Javascript is the language that optimizes the use of java in it. For example; if you code a minecraft plugin for say bukkit, then you will use a lot of common commands. The commands are the same between the two, and both can be used.

loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooool

you seriously made my day

thanks for that post.


RE: Alert boxes #10
(10-13-2013, 02:46 AM)Duubz Wrote: I do. I make small five minute tutorials that introduce the language small bits at a time to a newcomer in the computer language writing community.

And Javascript requires java, so either way it's basically the same thing. Java is just a platform to run games off of. Not all are games, it was just an example. Javascript is the language that optimizes the use of java in it. For example; if you code a minecraft plugin for say bukkit, then you will use a lot of common commands. The commands are the same between the two, and both can be used.

This post has so much autism in it it's unbelievable.