Skip to main content

How to write your first javascript without any Experience

 how to write our first javascript



you can write your javascript inside this script track your scripture can be placed everywhere within the html check but you are recommended to keep the script tag within the head track okay the script track may contain two important attributes 


their language and type first we will talk about the language to the opening of the script tag you can show the language as javascript but it is not compulsory as it phased out with the development of new versions of html it can be written as language equals quotation mark javascript quotation mark 

next we will learn about the type this attribute indicates 

the scripting language news which identifies the content between the script tag the type attribute can be written as shown here type equals quotation mark text slash javascript quotation mark as the text slash javascript became outdated it had replaced with the application slash javascript so it can be written as type equals quotation mark application slash javascript quotation mark however the type out of which is optional upon the introduction of html5 so in short both the adwords language and type are optional in the new versions of html now we will write our first javascript with document.write we have here the document dot right then inside the round brackets and quotation marks we have hello friends wow congratulations we wrote our first javascript successfully let's try one more thing type here function then type any function name followed by the round brackets we will set this alert message your payment has been sent successfully inside the body tag we have here the input tag the type is button next we have the on click put this function name here the value of the input will be new message let's add here two beer tracks to break down the lines if we click here it will give us this alert message that's it

 if you have any questions do let me know in the comment box below 

Comments

Popular posts from this blog

Why we are adding hastags in our social network/increase views/best hastag generators

                               WITHOUT HASTAG:        1. If you post video in social media  whithout Hastag              like Facebook, YouTube ,Twitter, Instagram and              ETC....                 2.Then Result : single digits views and likes in one               day  😥😥              3.No- subscribers , followers,  viewers.       ADDING HASTAG:                 1. ADDING HASTAG- To get more views,  subscribe,                 follower in social networks.         2. There is many HASTAG Generators in Google.com           fo...

best SEO company |SEO company primelis | SEO |

 Professional SEO Company for your business.  There are over 5 billion searches online every day and 93% of online experiences begin with searching along with high quality backlinks. organic seo company 80% of users ignored paid ads & never scroll page one. 93% successtop SEO company Top 3 results on google and other search engines by SEO services in the organic ways. SEO company in USA.  You need a serious and powerful ranking service to, web design seo company reach search visibility and can guarantee to take your website to the top of search engines Backlinks are any links received by your website from another website seo company rankings and high PR backlinks Only high quality backlinks matter bad links can be harmful for website ranking. The good news is Egochi is the best seo company that can provide high PR backlinks for your website Safe, organic and natural seo services along with seo backlinks compatible with Google algorithm All links are manually buil...

Does Wordpress update affect frontend?

  WordPress - CMS WordPress is a content management system that allows people to publish their own websites or blogs. It is one of the most popular CMS (content management system) on the internet. WordPress updates are released periodically and these updates are done for security fixes and bug fixes. These updates may not affect the front-end of your website, but they can affect the backend. WordPress updates WordPress updates are done to improve the user experience and make WordPress more secure. However, with every update, there is a chance that it will break something on the frontend. The latest WordPress release (4.9) has caused some issues for many users with their front end of a website. This includes issues with displaying images, sidebar widgets not showing up, and other minor bugs in the site’s appearance.