js模拟点击超链接,怎么可以实现

<div class="com-mark-p-reference" data-type="web" data-id="7" id="com_mark_reference_7">
        <div class="com-mark-pr-content com-mark-pr-web">
        <a href="http://hf.news.anjuke.com/34/249143.html" target="_blank">点击查看内容</a>
        <input class="web-type" type="hidden" web-type="link"></div>
    </div>

document.getElementById("com_mark_reference_7").click();
这样好像不行,请问怎么获取a标签链接然后点击跳转呢

直接获取href属性,location跳转。