Alert with inline scripting


<DOCTYPE html>


<html>


   <head>


      <title>alart</title>


   </head>


   <body>


     <p>we will give an alert with button using inline scripting.</p>


     <h3>click button to alert</h3>


     <button onclick=”alert(‘I love Code-xombi, what about u?’)”>Click</button>


   </body>


</html>

OUTPUT:

Output for the above code.

Leave a Comment