JavaScript array example: Click to read text one by one

Source: Internet
Author: User
Tags array example javascript array

The Helper House (www.bkjia.com) provides an example of a JavaScript array. we store the text in the array and output the text in a loop, just like an announcement, however, this is not the case now. You can learn JS arrays as an example reference.

<Title> JavaScript Array text </title> <form> <table CELLSPACING = "0" CELLPADDING = "0" WIDTH = "420"> <tr> <td width = "100% "colspan =" 3 "valign =" top "> <div align =" center "> <textarea NAME =" teletype "ROWS =" 3 "COLS =" 49 "wrap =" yes "> </textarea> </td> </tr> <tr align =" center "> <td width =" 30% "bgcolor =" #127a0 "valign =" top "> <input TYPE =" text "value =" 3 in total "SIZE =" 5 "name =" 1 "> </td> <td width =" 30% "bgcolor = "# define A0" valign = "top"> <inpu T TYPE = "button" VALUE = "read" onClick = "nextMessage () "> </td> </tr> </table> </form> <br/> press" read "to start, and click" 2, 3 "until the end. <Br/> <center> If the page cannot be displayed, press Ctrl + F5 to refresh the page. For more webpage code: <a href = 'HTTP: // www.bkjia.com/'_ fcksavedurl = 'HTTP: // www.bkjia.com/'target =' _ blank '> http://www.bkjia.com/</a> </center>

Tip: the code can be modified before running!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.