What is a javascript?
Javascript is a computer programming language used to do changes in Webpages.
Javascript is an object oriented scripting language allows to interact with multiple webpages.
Javascript allow client-side script to interact with the user and make dynamic pages.
JavaScript code can be written into an HTML page and when a user requests an HTML page with JavaScript in it,The script is sent to the browser and the browser does something in the webpages.
How Javascript is applied in HTML ?
There are three ways we can apply Javascript in HTML document.
1. Inline action
2. Internal action
3. External action
1. Inline action
Inline Javascript is used to apply a unique action to a single HTML element.
HTML events are triggered inline for that particular HTML element.
Example :
<!DOCTYPE html>
<html>
<head>
<title>HTML with Javascript</title>
</head>
<body>
<input type="button" style="width:330px" value="Click" onclick="alert('Hello, How are you doing today')">
</body>
</html>
Output :

HTML coding for a website !!!
Click to Learn More about – HTML Tutorial for beginners
2. Internal action
Internal Javascript is used to define an action for elements in HTML page.
Internal Javascript is defined inside the <head> section of an HTML page.
<script></script> tag is added inside the <head> element.
Example :
<!DOCTYPE html>
<html>
<head>
<title>HTML with Javascript</title>
<script>
function myFunction(){
alert("HI, How are you doing today ?");
}
</script>
</head>
<body>
<input type="button" style="width:330px" value="Click" onclick="myFunction()">
</body>
</html>
Output :

3. External action
External Javascript file is used to apply action to the HTML elements.
External Javascript is defined inside the <head> section of an HTML page.
<script></script> tag along with “type” , “src” attributes are used inside the <head> element.
Example :
<!DOCTYPE html>
<html>
<head>
<title>HTML with Javascript</title>
<script type="text/javascript" src="external.js">
</script>
</head>
<body>
<input type="button" style="width:330px" value="Click" onclick="myFunction()">
</body>
</html>
Javascript file external.js
function myFunction(){
alert("Hi, How are you doing today ?");
}
Output :

Frequently used Javascript events.
1. onBlur
When form input loses focus
2. onClick
When the user clicks on a form element or a link
3. onSubmit
When user submits a form to the server.
4. onLoad
When page loads in a browser.
5. onFocus
When user focuses on an input field.
I savor, lead to I discovered exactly what I used to be taking a look for.
You have ended my 4 day long hunt! God Bless you man. Have
a nice day. Bye
voetbalshirts
Thanks a lot for your love, blessings and support.
Am planning to post more tutorials please support me.
Thanks.
I got this web page from my friend who told me concerning this web page and at the moment this time I am browsing this site and reading very informative content at this place.
Bayern Munchen Shirt
Thanks a lot for your love and support.
If the tutorial is good please share it to your friends.
Thanks.
I’m not sure why but this weblog is loading extremely slow for me.
Is anyone else having this problem or is it a issue on my end?
I’ll check back later on and see if the problem still
exists. Koszulka Chelsea
No matter if some one searches for his essential thing,
so he/she desires to be available that in detail, so that thing is
maintained over here. fußball-trikot Günstige
Its a motivation for me, thanks a lot for your love and support.
Great delivery. Outstanding arguments. Keep up the amazing work.
fodboldsæt
Thanks a lot for your love and support.
Hey there! This post could not be written any better!
Reading this post reminds me of my old room mate! He always kept talking about this.
I will forward this article to him. Pretty sure
he will have a good read. Thank you for sharing!
Tottenham Hotspurs Trøje
Thanks a lot for your love and support.
Keep following and if the tutorial is good please share to your friends.
Thanks.
I like the helpful info you provide in your articles.
I’ll bookmark your weblog and check again here regularly.
I am quite certain I’ll learn many new stuff right here!
Good luck for the next! Maillot Juventus 2021
Hi there, I enjoy reading through your article. I wanted
to write a little comment to support you.
Tyskland tröja
Thanks a lot for your love and support.
always i used to read smaller content that as well
clear their motive, and that is also happening with
this post which I am reading now. Manchester United Trikot
Thanks a lot for your love and support.
Planning to post more tutorial series so keep following.
Thanks
Hello There. I found your blog using msn. This is an extremely well
written article. I’ll be sure to bookmark it and return to read more of your useful info.
Thanks for the post. I’ll definitely return. Camiseta España
Thanks a lot for your love and support.
Normally I don’t learn post on blogs, but I wish
to say that this write-up very forced me
to take a look at and do it! Your writing taste has been amazed me.
Thank you, very great post. Juventus pelipaita
Thanks a lot for your support.
Its a motivation for me,
Thanks.
I’m not sure why but this blog is loading
very slow for me. Is anyone else having this issue or is it a problem on my end?
I’ll check back later and see if the problem still exists.
Maillot France
I haven’t enabled https support for my website, that may be the problem.
please try https://s30.e0b.myftpupload.com
Thanks a lot.
Wow, this paragraph is good, my younger sister is
analyzing these kinds of things, therefore I am going to tell her.
Maglia Arsenal
Thanks a lot for your support.
Am plannning to post more tutorial series keep following.
Thanks.
I’m really enjoying the theme/design of your web site.
Do you ever run into any internet browser compatibility
problems? A handful of my blog audience have complained about my blog
not operating correctly in Explorer but looks great in Opera.
Do you have any recommendations to help fix this problem?
Frankrijk Shirt
Thanks a lot, I am using a standard word press theme and they will handle the browser compatibility.
I would suggest you to analyse the themes and if possible take a backup and move your content to new theme,
We have to check all the things are perfect.
Thanks.
Hi, Thanks a lot for your love and support.
Planning to post more tutorial series, Please follow us and lets share our knowledge.
Thanks.