![]() |
|
Tutorial Alert boxes - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Java, JVM, & JRE (https://sinister.li/Forum-Java-JVM-JRE) +--- Thread: Tutorial Alert boxes (/Thread-Tutorial-Alert-boxes) Pages:
1
2
|
Alert boxes - Equinox - 10-12-2013 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="Code: .js"></script>So what's the script, Duubz!?! Code: functionCode: ()
{
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="Code: ">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 RE: Alert boxes - Mafia - 10-12-2013 Looks like a good tutorial. Thanks. RE: Alert boxes - Crimin4L - 10-12-2013 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. RE: Alert boxes - Cyanide and Cynicism - 10-12-2013 JavasScript, not Java. Second, who the fuck does a tutorial on something as simple as alert boxes? RE: Alert boxes - mig4ng - 10-12-2013 Good tutorial, very explicit for newbies! Thanks for the time you dedicated to make this tutorial. RE: Alert boxes - Oni - 10-12-2013 This is ridiculously basic Javascript. I guess it might help some people, though. RE: Alert boxes - mig4ng - 10-12-2013 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
RE: Alert boxes - Equinox - 10-13-2013 (10-12-2013, 08:19 PM)Cyanide and Cynicism Wrote: JavasScript, not Java. 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. RE: Alert boxes - Cyanide and Cynicism - 10-13-2013 (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 - yokai_old - 10-13-2013 (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. This post has so much autism in it it's unbelievable. |