Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Other Programming › Web Languages › [TuT] Java script tutorial

[TuT] Java script tutorial

Posts 1–5 of 5 · Page 1 of 1
rob7601
rob7601
[TuT] Java script tutorial
You will need the following


1. Notepad (Notepad++ recommended)
2. Basic knowledge of Html coding

What is Html? Html, Hypertext Markup Language is markup language for web pages that provides a means to create structured documents by denoting structural semantics for text such as headings,links, quotes and other items.

What is Java Script? What Java Script is, is a programing scripting language that you put right in your website to make it more interactive and dynamic.

How do i get Started? First off you want to make a folder on your desktop and create a new text document, right click text document and rename the document to " index.html ", then open it with notepad and your ready to put some code in.

Beginning Script: Add a Beginning script before you start adding code[html]<script>
</script>[/html]This may not work for all browsers so to be safe add this
[html]<script type="text/java script"> // no space between java script
</script>[/html]

Writing Text: Adding in text
[html]<script type="text/java script">
document.write("Text message"); // For numbers you don't need ""
</script>[/html]

Alert Box:[html]<script type="text/java script">
Alert("This is a Alert box");
</script>[/html]

Variables: Supporting a value[html]<script type="text/java script">
var n1="50";
var n2="40";
var answer=(n1+n2);
alert(answer);
</script>[/html]

Prompt:[html]<script type="text/java script">
var name=prompt("What is your name?");
alert("What a lame name "+name);
</script>[/html]Simple multiplying calculator[html]<script type="text/java script">
var n1=prompt("Enter in any number");
var n2=prompt("Enter in another number");
alert(n1*n2);
</script>[/html]

Arrays:[html]<script type="text/java script">
var animals=new Array();

animals[0]="cat";
animals[1]="dog";
animals[2]="mouse";
alert(animals[2]);
</script>[/html]Second kind of Array[html]<script type="text/java script">
var animals=new Array("cat","dog","mouse");
alert(animals[2]);
</script>[/html]
If Else Statements:[html]<script type="text/java script">
var n1=2;
var n2=3;

if (n1<n2)
{
alert("True");
}
else
{
alert("False");
}
</script> [/html]

If you liked my tutorial and you would like me to make another more advanced TuT on java scripts message me or comment, and don't forget to press the thanks button.
#1 · edited 16y ago · 16y ago
Fantomfury26
Fantomfury26
I know this is kinda late ;p. But this is a great tutorial, for someone starting out after, HTML. HTML just doesn't cut it for the stuff that java script has to offer. Thanks mate!
#2 · edited 16y ago · 16y ago
NextGen1
NextGen1
Watch the bumping (as in , don't do it)

no bumping topics 7 + days

Thanks
#3 · 16y ago
MA
maneater4122
thanks this will come in handy
#4 · 15y ago
NextGen1
NextGen1
Please read the post above yours



Closed
#5 · 15y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tut] Java Assorted TutorialsBy drgnforce9 in Java
    2Last post 17y ago
  • Java script hackBy iwanthacks121 in Java
    35Last post 16y ago
  • OMG I SO STUCK!!!(Java Script "n" html problemBy jeremywilms in Programming
    11Last post 20y ago
  • [TUT] Improved Proxy TutorialBy kartsponge in Combat Arms Hacks & Cheats
    11Last post 17y ago
  • Html, Java script, can someone help me make a password blocked area??By jeremywilms in Programming
    1Last post 20y ago

Tags for this Thread

None