HBCMS更多的中文手册参考:

hash参数属性

DHTML文档教程

Sets or retrieves the subsection of the href property that follows the number sign (#).

dhtml语法

htmln/a
scriptingobject.hash [ = shash ]

dhtml可能的值

sHashString that specifies or receives the part of the URL following the number sign (#).

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

if there is no number sign, this property returns an empty string.

this property is useful for moving to a bookmark within a document. assigning an invalid value does not cause an error.

DHTML代码范例

This example function returns true if the current document URL has a hash value, or false if the document URL does not.

function hasHash()
{
if (document.location.hash == "")
return false;
return true;
}

是否符合公共标准

There is no public standard that applies to this property.

Applies To

A, AREA, location