String.link() Method
Name
String.link() Method---add a hypertext link to a string
Navigator 2.0, Internet Explorer 3.0
Synopsis
- href
-
The URL target of the hypertext link that is to be added to
the string. This string argument specifies the value of the
HREF attribute of the <A> HTML tag.
A copy of string, enclosed within
<A HREF="href">
and </A> HTML tags.
The following two JavaScript fragments evaluate to identical
strings:
'Section 1-1'.link('ch01#sect1')
'<A HREF="ch01#sect1">Section 1-1</A>'
String.length
String.prototype
file: /Techref/language/JAVA/script/definitive/refp_367.htm,
4KB, , updated: 2019年10月14日 16:00, local time: 2025年9月23日 09:56,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/techref/language/JAVA/script/definitive/refp_367.htm"> [Chapter 21] Reference: String.link()</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.