How to Create Automatic Scrolling Content in Textarea using JavaScript

In this tutorial, we are going to create Automatic Scrolling Content in Textarea using JavaScript. This is simple source code that we are going to use to create this. Using this script, the content of the Textarea will automatically be scrolling up the page. Creating Textarea as shown in the image below. ResultHere's the source code in the image above.
  1. <form name="msgform" action="">
  2. <textarea class="area_style" id="msgarea" name="msgarea" cols=69 rows=12></textarea>
  3. </form>
The complete code.
  1. <!DOCTYPE html>
  2. <title>Automatic Scrolling Textarea</title>
  3.  
  4. <script src="js/function.js" language="JavaScript"></script>
  5. <link rel="stylesheet" type="text/css" href="css/style.css">
  6.  
  7. </head>
  8. <body onLoad = "DisplayScroll()"; onUnload = "quitDisplay()">
  9.  
  10. <form name="msgform" action="">
  11. <textarea class="area_style" id="msgarea" name="msgarea" cols=69 rows=12></textarea>
  12. </form>
  13.  
  14. </body>
  15. </html>
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