How to place an "alert message" with JavaScript - Web design #6

in #computing6 years ago (edited)



Source .





Greetings to all readers, I will show you today what is a simple alert message with Js (JavaScript) the message is very easy and simple to use. Now for those who do not know Js is a programming language on the client side, it allows us to create dynamic content.

 


 


To start we create a document in our text editor I usually use sublimetext, you can use the one of your preference. We open some of our previous html document that we have created or making one from 0 as we can visualize in the following photo.
foto1 (1).png

At the end are the previous html courses I have done, if you do not have some document or do not know how to create them, do not hesitate to visit it and learn how to create an HTML document.


We can also add some CSS styles to our page to give it a better look and structure.
foto2.22.png


Now if what we are coming to, to place the message "Js" using "Alert" is very simple, we place the label script type="text/javascript" ,followed by "Alert" alert("Hello whales"); and between the parentheses we place the message that we want to show in my case `"Hello whales"`and finally we end up closing the label /script
 

lesha.jpg

This shows us the message that we put on alert before opening our page...
 


This has been all for today, I hope you have learned something from this tutorial any questions leave me in the comments that I will gladly answer and clarify all your questions.
modificado_11.png

 

Follow me on my social networks

twitter.jpg Tw facebook.jpg Fb instagram-logo-gif-9.jpg Ig

modificado_11.png



Previous Tutorials


 
Tutorial 1 Tutorial 2 Tutorial 3 Tutorial 4 Tutorial 5 Tutorial 6
Introduction Paragraphs, titles and labels Tables and lists Forms Link a css document with html drop-down menu
 

All images are screenshots of my property, except the one that is specified.

 

Posted from my blog with SteemPress : https://erick777.timeets.com/2018/11/09/how-to-place-an-alert-message-with-javascript-web-design-6/

Sort:  

Hello! Your post has been resteemed and upvoted by @ilovecoding because we love coding! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On!

Reply !stop to disable the comment. Thanks!

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by erick777 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.