Text Alert to Entering a Web Page

Text Alert to Entering a Web Page

If you are looking for on how to create Text Alert to Entering a Web Page then you are at the right place. You can use this source code to give a message to the users that they're entering to your website. This is a simple source code. Enjoy coding.

JavaScript Source Code

Kindly copy and paste to your HEAD tag of your page.
  1.         <script language="javascript" type="text/javascript">
  2.                 alert("Welcome to my Web Page.")
  3.         </script>

Sample HTML Source Code

Copy and paste to your BODY tag.
  1. <h1>
  2.         <script language="javascript" type="text/javascript">
  3.                 document.write("<b style='color:blue;'>Sourcecodester.com</b>")
  4.         </script>
  5. </h1>
  6.  
  7. <p>
  8. Do you have source code, articles, tutorials, web links, and books to share?
  9. You can write your own content here. You can even have your own blog.
  10. </p>
This is the result. Result Kindly click the "Download Code" button below for full source code. Thank very much. So what can you say about this work? Share your thoughts in the comment section below or email me at [email protected]. Practice Coding. Thank you very much.

Add new comment