定義和用法
該anchor()方法不規範,並預期在所有瀏覽器可能無法正常工作。
該anchor()方法用於創建HTML錨。
此方法返回嵌入在字符串<a>標籤,就像這樣:
<a name="anchorname">串</A>
瀏覽器支持
方法 | |||||
---|---|---|---|---|---|
anchor() | 是 | 是 | 是 | 是 | 是 |
句法
string.anchor(" name ")
參數值
Parameter | Description |
---|---|
name | Required. The name of the anchor |
技術細節
返回值: | 嵌入在一個字符串<a>標籤 |
---|---|
JavaScript的版本: | 1.0 |
