<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD><BODY>
<a href="" id=aa>打开</a>
<script>
document.all.aa.href="http:www.csdn.net";
</script>
</BODY>
</HTML>

解决方案 »

  1.   

    <a href="" id="h1"></a>
    <Script language="javascript">
    function act()
    {
        h1.href="www.chemn.com"
    }
    </Script>
      

  2.   

    <a href="http://www.csdn.com" id="link1">Link</a>
    <BUTTON onclick="document.getElementById('link1').href='http://design.xuse.net'">changeLInk</BUTTON>
      

  3.   

    A--------------------------------------------------------------------------------DescriptionDesignates the start or destination of a hypertext link. The anchor element requires the href or the name property to be specified. ResText and/or images can be within an anchor. To represent images that are anchors, a border in the visited or not-visited color is displayed. PropertiesaccessKey, className, dataFld, dataSrc, document, hash, host, hostname, href, id, innerHTML, innerText, isTextEdit, lang, language, Methods, name, offsetHeight, offsetLeft, offsetParent, offsetTop, offsetWidth, outerHTML, outerText, parentElement, parentTextEdit, pathname, port, protocol, recordNumber, rel, rev, search, sourceIndex, style, tabIndex, tagName, target, title, urn Methodsblur, click, contains, focus, getAttribute, insertAdjacentHTML, insertAdjacentText, removeAttribute, scrollIntoView, setAttribute Collectionsall, children, filters Eventsonblur, onclick, ondblclick, ondragstart, onerrorupdate, onfilterchange, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselectstart 
      

  4.   

    <Script language="javascript">
    function clickit()
    {
        link1.href="www.sohu.com"
        form.submit();
    }
    </Script>
    <a href="www.sina.com.cn" id="link1" onclick= "javascript:clickit()"></a>