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 >
A string specifying the color of the document background.
document.bgColor
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"
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:
Hello, world
Hello, world
Hello, world
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">
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.
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>
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.
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.
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.
无忧站长学院,建站自然无忧www.5ucms.org
上一篇:5ucms仿站,javascript手冊-a 下一篇:5ucms仿站,javascript手冊总纲 |
|
本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。 5ucms培训,javascript手冊-b的关键词: |