JavaScript objects and Array reference Encyclopedia (12)

Source: Internet
Author: User
Tags array object italic font reference string
Reference | objects | Names of array name option lists (name attribute)
Number of options in the Options list
Index of <OPTION> selected in the list of Selectedlndex options (location)
Text after marking in the Text option list (option)
value= attribute in list of value options
Method
Blur removes focus from the list of options
Focus moves to the list of options
Event handlers
Event when Onblur loses focus
onchange changes
Onfocus Spotlight Event

B.27 String Object

It is not a property of another object, but rather a built-in object, that is, a string of character string input scripts must be enclosed in quotation marks.

Property

Number of characters in length string
Method
Anchor () is used to convert the string into an HTML anchor tag (<a name=>).
Big () turns the text in the string into a large font (<BIG>)
Blink () changes the text in the string to a blinking font (<BLINK>)
Bold () turns the text in the string into a black font (<B>)
CharAt () looks for a character at the specified position in the string
Fixed () turns the text in the string into a constant spacing font (<TT>)
FontColor () Change the color of text in a string (<font color=>)
FontSize () changes the text in the string to the specified size (<FONTSIZE=>)
IndexOf () is used to search for a special character in the string and returns the index position of the character
Italics () The text in the string into a italic font (<I>)
Lastlndexof () is similar to indexof, but searches backwards for the last occurrence of the character
Link () is used to convert strings to HTML link tags (<a href=>)
Small () turn text in a string into a small font (<SMALL>)
Strike () The text in the string into a crossed font (<STRIKE>)
Sub () To turn text in a string into subscript (subscript) font (sub>)
SUBSTRING () returns a portion of the string between the specified positions in the string



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.