复制代码 代码如下: link(){var olink = getElementById("link");var text = olink.innerHTML;var start = text.indexOf(">")+1;var end = text.lastIndexOf("text = text.substring(start,end);location.href=text;}maito:smvcn@yahoo.com.cn