Difference between Javascript and HTML

Learn the basics of how to exploit JavaScript.

Difference between Javascript and HTML

Post by Ch1maera on Sun Nov 09, 2008 12:57 pm
([msg=14712]see Difference between Javascript and HTML[/msg])

What's the difference? They look the same to me. I'm a newbie, if you can't figure that out. I'm not fnished learning HTML yet, but I'm just curious.
New User
New User
Posts: 9
Joined: Sat Nov 08, 2008 1:13 pm
Blog: View Blog (0)

Re: Difference between Javascript and HTML

Post by Sikvaruli on Sun Nov 09, 2008 6:04 pm
([msg=14730]see Re: Difference between Javascript and HTML[/msg])

lol, there's a huge difference.

Html is the basic outline of a site.

<body bgcolor= "ilikestripes">
I like stripes

There's a simple website right there. Short, easy, and to the point.

Javascript deals with popups and whatnot, different site functions, etc.

<div style="position:relative;left:0px;top:0px">
<span id="highlighter" style="position:absolute;left:0;top:0;font-size:18px;font-family:Verdana;background-color:yellow;clip:rect(0px 0px auto 0px)"></span>

<script type="text/javascript">

tickercontents[1]='Hop on over to <a href="http://www.ilikestripes.com">ilikestripes</a> ilikstripes!'

var tickdelay=3000 //delay btw messages
var highlightspeed=10 //10 pixels at a time.

////Do not edit pass this line////////////////

var currentmessage=0
var clipwidth=0

function changetickercontent(){
crosstick.style.clip="rect(0px 0px auto 0px)"

function highlightmsg(){
var msgwidth=crosstick.offsetWidth
if (clipwidth<msgwidth){
crosstick.style.clip="rect(0px "+clipwidth+"px auto 0px)"
if (currentmessage==tickercontents.length-1) currentmessage=0
else currentmessage++

function start_ticking(){
crosstick=document.getElementById? document.getElementById("highlighter") : document.all.highlighter
crosstickParent=crosstick.parentNode? crosstick.parentNode : crosstick.parentElement
if (parseInt(crosstick.offsetHeight)>0)
setTimeout("crosstickParent.style.height=crosstick.offsetHeight+'px'",100) //delay for Mozilla's sake

if (document.all || document.getElementById)


This is javascript for a different scroller on the side of a page. You put in java script IN html.

<body bgcolor= "ilikestripes">
<script= "javascript>
fuction ilikestripes{


Html is the layout of a site. Javascript is fuctions in the site that make it look better. Html is necessary for sites; but Javascript is not.
I want to learn how to hack/bypass: .bat file restrictions, bypass administration restriction, and how to hack websites.

"Sikvaruli" is Georgian for "Love"
Sikvaruli; სიყვარული :D
New User
New User
Posts: 16
Joined: Sat Nov 01, 2008 8:35 pm
Blog: View Blog (0)

Re: Difference between Javascript and HTML

Post by eljonto on Sun Apr 05, 2009 7:54 pm
([msg=21243]see Re: Difference between Javascript and HTML[/msg])

HTML is a markup langauge javascript is a scripting langauge

<body bgcolor= "ilikestripes">

-Quis custodiet ipsos custodes?, Juvenal
User avatar
Posts: 373
Joined: Thu Apr 17, 2008 1:16 am
Location: Australia
Blog: View Blog (0)

Return to Javascript

Who is online

Users browsing this forum: No registered users and 0 guests