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.
A password object on a form looks as follows:
A password object is a form element and must be defined within a <FORM> tag.
A string specifying the url-path portion of the URL.
1. links[index].pathname2. location.pathname
index is an integer representing a link object.
link, location
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.
The ratio of the circumference of a circle to its diameter, approximately 3.14159.
Math.PI
Math
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)
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.
link, location
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.
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.
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))
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.
window
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)
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.
link, location
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.
无忧站长学院,建站自然无忧www.5ucms.org
上一篇:5ucms教程,javascript手冊-t 下一篇:5ucms培训,javascript手冊-m&n |
|
本站声明:本网站所载文章等内容,目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如涉及作品内容、版权及其它问题,请在30日内与本网联系(Email:3876307#qq.com),我们将在第一时间删除内容。若原创内容转载请注明出处。 5ucms培训,javascript手冊-p&q的关键词: |