邮件订阅
5ucms培训,javascript手冊-b
作者: 来源: 日期:2015/9/3 0:10:43 浏览量:94(滞后) 人气:LOADING...(实时) 【

5ucms培训,javascript手冊-b

back method

Loads the previous URL in the history list.

语法

history.back()

用法

history

描述

This method performs the same acti VALUE="http://www.dedecms.com/web-art/htmlbase/Javascript/20020827/< Back" ><P><INPUT TYPE="butt >

See also

  • forward, go methods

    bgColor property

    A string specifying the color of the document background.

    语法

    document.bgColor

    Property of

    document

    描述

    The bgColor property is expressed as a hexadecimal RGB triplet or as

    The following example sets the color of the document background to aqua using a hexadecimal triplet:

    document.bgColor="00FFFF"

    See also

  • alinkColor, fgColor, linkColor, and vlinkColor properties

    big method

    Causes a string to be displayed in a big fdocument.write(worldString.small())document.write("<P>" + worldString.big())document.write("<P>" + worldString.fdocument.write(worldString.blink())document.write("<P>" + worldString.bold())document.write("<P>" + worldString.italics())document.write("<P>" + worldString.strike())

    The previous example produces the same output as the following htm:

    <BLINK>Hello, world</BLINK><P><B>Hello, world</B><P><I>Hello, world</I><P><STRIKE>Hello, world</STRIKE>

    See also

  • bold, italics, strike methods

    blur method

    Removes focus from the specified object.

    语法

    1. passwordName.blur()2. selectName.blur()3. textName.blur()4. textareaName.blur()

    passwordName is either the value of the NAME attribute of a password object or an element in the elements array.
    selectName is either the value of the NAME attribute of a select object or an element in the elements array.
    textName is either the value of the NAME attribute of a text object or an element in the elements array.
    textareaName is either the value of the NAME attribute of a textarea object or an element in the elements array.

    用法

    password, select, text, textarea

    描述

    Use the blur method to remove focus from a specific form element.

    例子

    The following example removes focus from the password element userPass:

    userPass.blur()
    This example assumes that the password is defined as:
    <INPUT TYPE="password" NAME="userPass">

    See also

  • focus, select methods

    bold method

    Causes a string to be displayed as bold as if it were in a <B> tag.

    语法

    stringName.bold()

    stringName is any string or a property of an existing object.

    用法

    string

    描述

    Use the bold method with the write or writeln methods to format and display a string in a document.

    例子

    The following example uses string methods to change the formatting of a string:
    var worldString="Hello, world"document.write(worldString.blink())document.write("<P>" + worldString.bold())document.write("<P>" + worldString.italics())document.write("<P>" + worldString.strike())

    The previous example produces the same output as the following htm:

    <BLINK>Hello, world</BLINK><P><B>Hello, world</B><P><I>Hello, world</I><P><STRIKE>Hello, world</STRIKE>

    See also

  • blink, italics, strike methods

    butt NAME="butt []>NAME="butt specifies the label to display on the button face. You can access this value using the value property.

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

    1. buttonName.propertyName2. buttonName.methodName(parameters)3. formName.elements[index].propertyName4. formName.elements[index].methodName(parameters)
    buttonName is the value of the NAME attribute of a button 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 button object on a form.
    propertyName is one of the properties listed below.
    methodName is one of the methods listed below.

    Property of

  • form

    描述

    A button object on a form looks as follows:

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

    The button object is a custom button that you can use to perform an action you define. The button executes the script specified by its onClick event handler.

    Properties

  • name reflects the NAME attribute
  • value reflects the VALUE attribute

    Methods

  • click

    Event handlers

  • onClick

    例子

    The following example creates a button named calcButton. The text "Calculate" is displayed on the face of the button. When the button is clicked, the function calcFunction() is called.

    See also

  • form, reset, and submit objects

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

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