no fucking license
Bookmark

JAVASCRIPT INTRODUCTION

 JavaScript is a programming language used on the internet. It is known for its ability to enhance the user experience of a website, add website content, and create web applications that can run on the client's web browser without being connected to a server.

For example, JavaScript can be used to create attractive clickable shapes, such as sliders, popups, and navigation menus that enhance website usability. It can also be used to create user forms, which can ensure that data submitted to the website is accurate and complete. In addition, JavaScript can be used to create gambling games and other entertainment applications.

Because JavaScript works well with HTML and CSS, it is the go-to language for creating interactive web content. It is also a popular choice for web developers due to its versatility and ease of use.

Example 1,

<!DOCTYPE html>

<html>

<head>

   <title> Try It Yourself </title>

   <style type="text/css">

      button {

         font-family: sans-serif;

         border: none;

         padding: 15px 30px;

         font-size: 20px;

         outline: none;

         margin: 10px;

      }

      #btn {

         background-color: rgb(23, 52, 89);

         color: #f8f9f9;

         box-shadow: .5px .5px 1px 2px #000000;

      }

   </style>

</head>

<body>

   <button id="btn"> Show a Dialog </button>


   <script type="text/javascript">

      document.getElementById("btn").onclick = function() {

         alert("I am a dialog box!")

      }

   </script>

</body>

</html>

In this Example JavaScript code is this

<script type="text/javascript">

      document.getElementById("btn").onclick = function()

         alert("I am a dialog box! ") }

   </script>




Post a Comment

Post a Comment

write your comment here