开发者

Anchor tags and target behaviour? - HTML

I must say that despite this being a newb question, I don't think I have totally mastered HTML a tags.

Whenever I want to open a link in a new tab I add target="_blank", works fine in chrome and firefox. Not in IE7-8.

I think the behaviour might have something to do with the DOCTYPE, but I'm not entirely sure. I'm currently using HTML 4开发者_开发知识库.01 Strict.


Right now what I am trying to understand is:

  • How to open links in new tabs in IE7-8

  • How to open links within small windows

Anchor tags and target behaviour? - HTML


Help would be very much appreciated! :)


target attribute for links is not part of HTML 4.01 Strict. Generally speaking, opening new windows is considered bad usability. See also another question. To control window's size, you need to use window.open().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜