邮件订阅
5ucms培训,javascript手冊-p&q
作者: 来源: 日期:2015/8/30 12:58:43 浏览量:63(滞后) 人气:LOADING...(实时) 【

5ucms培训,javascript手冊-p&q

parent property

The parent property is a syn, sibling frames can refer to that frame using parent.homeFrame or parent.frames[3].

You can use parent.parent to refer to the "grandparent" frame or window when a <FRAMESET> tag is nested within a child frame.

The parent property is read- NAME="passwordName" [VALUE="http://www.dedecms.com/web-art/htmlbase/Javascript/20020827/textValue"] SIZE=integer>NAME="passwordName" specifies the name of the password object. You can access this value using the name property.
VALUE="http://www.dedecms.com/web-art/htmlbase/Javascript/20020827/textValue" specifies the initial value of the password object. You can access this value using the defaultValue property.
SIZE=integer specifies the number of characters the password object can accommodate without scrolling.

To use a password object''s properties and methods:

1. passwordName.propertyName2. passwordName.methodName(parameters)3. formName.elements[index].propertyName4. formName.elements[index].methodName(parameters)
passwordName is the value of the NAME attribute of a password object.
formName is either the value of the NAME attribute of a form object or an element in the forms array.
index is an integer representing a password object on a form.
propertyName is one of the properties listed below.
methodName is one of the methods listed below.

Property of

  • form

    Description

    A password object on a form looks as follows:

    Enter your password:

    A password object is a form element and must be defined within a <FORM> tag.

    Properties

  • defaultValue reflects the VALUE attribute
  • name reflects the NAME attribute
  • value reflects the current value of the password object''s field

    Methods

  • focus
  • blur
  • select

    Event handlers

  • None.

    例子

    <B>Password:</B>

    相关

  • form and text objects

    pathname property

    A string specifying the url-path portion of the URL.

    语法

    1. links[index].pathname2. location.pathname

    index is an integer representing a link object.

    Property of

    link, location

    Description

    The pathname property specifies a portion of the URL. The pathname supplies the details of how the specified resource can be accessed.

    You can set the pathname property at any time, although it is safer to set the href property to change a location. If the pathname that you specify cannot be found in the current location, you will get an error.

    See Section 3.1 of RFC 1738 for complete information about the pathname.

    例子

    See the 例子 for the href property.

    相关

  • hash, host, hostname, href, port, protocol, search properties

    PI property

    The ratio of the circumference of a circle to its diameter, approximately 3.14159.

    语法

    Math.PI

    Property of

    Math

    Description

    Because PI is a constant, it is a read-only property of Math.

    例子

    The following example displays the value of pi:

    document.write("The value of pi is " + Math.PI)

    相关

  • E, LN2, LN10, LOG2E, LOG10E, SQRT1_2, SQRT2 properties

    port property

    A string specifying the communications port that the server uses for communications.

    语法

    1. links[index].port2. location.port

    index is an integer representing a link object.

    Property of

    link, location

    Description

    The port property specifies a portion of the URL. The port property is a substring of the host property. The host property is the concatenation of the hostname and port properties, separated by a colon. When the port property is not defined, the host property is the same as the hostname property.

    You can set the port property at any time, although it is safer to set the href property to change a location. If the port that you specify cannot be found in the current location, you will get an error. If the port property is not specified, it defaults to 80 on the server.

    See Section 3.1 of RFC 1738 for complete information about the port.

    例子

    See the 例子 for the href property.

    相关

  • hash, host, hostname, href, pathname, protocol, search properties

    pow method

    Returns base to the exponent power, that is, baseexponent.

    语法

    Math.pow(base, exponent)
    base is any numeric expression or a property of an existing object.
    exponent is any numeric expression or a property of an existing object. If the result would include an imaginary number (for example pow(-1, 0.5)), then the value returned is always zero.

    Method of

    Math

    例子

    //Displays the value 49document.write("7 to the power of 2 is " + Math.pow(7,2))//Displays the value 1024document.write("<P>2 to the power of 10 is " + Math.pow(2,10))

    相关

  • exp, log methods

    prompt method

    Displays a Prompt dialog box with a message and an input field.

    语法

    prompt(message, [inputDefault])
    message is any string or a property of an existing object; the string is displayed as the message.
    inputDefault is a string, integer, or property of an existing object that represents the default value of the input field.

    Method of

    window

    Description

    Use the prompt method to display a dialog box that receives user input. If you do not specify an initial value for inputDefault, the dialog box displays the value <undefined>.

    Although prompt is a method of the window object, you do not need to specify a windowReference when you call it. For example, windowReference.prompt() is unnecessary.

    例子

    prompt("Enter the number of cookies you want to order:", 12)

    相关

  • alert, confirm methods

    protocol property

    A string specifying the beginning of the URL, up to and including the first colon.

    语法

    1. links[index].protocol2. location.protocol

    index is an integer representing a link object.

    Property of

    link, location

    Description

    The protocol property specifies a portion of the URL. The protocol indicates the access method of the URL. For example, a protocol of "http:" specifies Hypertext Transfer Protocol, and a protocol of "javascript:" specifies JavaScript code.

    You can set the protocol property at any time, although it is safer to set the href property to change a location. If the protocol that you specify cannot be found in the current location, you will get an error.

    The protocol property represents the scheme name of the URL. See Section 2.1 of RFC 1738 for complete information about the protocol.

    例子

    See the 例子 for the href property.

    相关

  • hash, host, hostname, href, pathname, port, search properties

  • 无忧站长学院,建站自然无忧www.5ucms.org

    本站推荐: 5ucms模板下载 5ucms插件下载 仿站联系Q3876307       [复制给好友] [打印] [关闭] [返回] [顶部]
    上一篇:5ucms教程,javascript手冊-t
    下一篇:5ucms培训,javascript手冊-m&n
    本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。
    5ucms培训,javascript手冊-p&q的关键词:
    评论信息
    相关分类
    本周热门
    本月热门
    关于我们 - 版权/免责 申明 - 建站服务 - 网站地图 - 稿件投递 - 联系我们 - 5ucms
    Copyright © 2008-2015 www.5ucms.org