How to use javascript in HTML

How to use javascript in HTML
jagadeepAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jagadeepAuthor Commented:
Its Urgent Plz
0
CEHJCommented:
You're in the wrong TA. This is Java
0
TimYatesCommented:
<script type="text/javascript">

    var a = 'Hello' ;

    alert( a ) ;

</script>

Like that...

But as CEHJ says, you really want to be over here:

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

colr__Commented:
Urgent? 50 points?

Like everywhere else in life, you only get what you pay for.

TimYates example is corect - insert this into the <head></head> tags of your html document. Other than that youll need to do a tutorial on javascipt. first things first, javascipt != java, a common misconception.

colr__
0
TimYatesCommented:
>> insert this into the <head></head> tags of your html document.

Doesn't need to be in the head ;-)
0
colr__Commented:
Well spotted!!

colr__
0
a122178Commented:
:)
0
TimYatesCommented:
??
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.