[html] open the link in a new page without target="_blank" (Required by w3c strict)

In fact that, i do not remember whether it is w3c strict or wcag2.0A,

in a link ( <a href="xxx"></a>), we can not use target="_blank" to open the link in a new page.

 

here we can use onclick to pass the requirement. Code as:

<href="http://www.cnblogs.com/davidhhuan" onclick="target='_blank'" title="davidhhuan's blog">
    Davidhhuan
</a>

 

posted @ 2011-09-22 14:31  DavidHHuan  阅读(469)  评论(0编辑  收藏  举报