<script type="text/javascript">
</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
strvariable. link( linkstring)
"string literal". link( linkstring)
linkstring 参数是想要放置在 html 锚点的 href 属性中的文本。
说明
调用 link 方法来创建 string 对象外部的超链接。下面就是该 方法如何实现这种功能的一个例子:
var strvariable = "this is a hyper link";
strvariable = strvariable. link("http://www.microsoft.com");
最后一条语句执行完后,strvariable 的值是:
<a href="http://www.microsoft.com">this is a hyper link</a>
不检查该标记是否已经被应用于该字符串了。
要求
版本 1
< <script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript">
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
把一个有 href 属性的 html 锚点放置在 string 对象中的文本两端。
strvariable. link( linkstring)
"string literal". link( linkstring)
linkstring 参数是想要放置在 html 锚点的 href 属性中的文本。
说明
调用 link 方法来创建 string 对象外部的超链接。下面就是该 方法如何实现这种功能的一个例子:
var strvariable = "this is a hyper link";
strvariable = strvariable. link("http://www.microsoft.com");
最后一条语句执行完后,strvariable 的值是:
<a href="http://www.microsoft.com">this is a hyper link</a>
不检查该标记是否已经被应用于该字符串了。
要求
版本 1
< <script type="text/javascript"> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<script type="text/javascript">
</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>