Open in new windows with HTML 4.01 Strict

As every web-programmer should know, in HTML 4.01 strict the "target" property of the tags is no longer allowed. I would like to personally thank the WWW consortium for this, because I hate links that automatically open in a new window (while my best friend Firefox helps me keeping them in new tabs instead of new windows). However, under certain circumstances (?) may be desiderable to disturb the user by forcing the browser not to change the address of the current page (i.e. you don't want users to go away from your page); strange but true, you don't care about breaking the user's browsing history, but you would feel as a profanation to break the W3C standards. Here comes to help Javascript: just replace every

<a href="http://..." target="_blank">


with

<a href="http://..." onclick="window.open(this.href); return false;">


Welcome to the dark side of standard compliance!

26 comments:

出張ホスト said...
This comment has been removed by a blog administrator.
家出 said...
This comment has been removed by a blog administrator.
倶楽部 said...
This comment has been removed by a blog administrator.
プロフ公開 said...
This comment has been removed by a blog administrator.
素人 said...
This comment has been removed by a blog administrator.
デリバリーホスト said...
This comment has been removed by a blog administrator.
熟女サークル said...
This comment has been removed by a blog administrator.
グリー said...
This comment has been removed by a blog administrator.
セレブ said...
This comment has been removed by a blog administrator.
プロフ said...
This comment has been removed by a blog administrator.
ゲイ said...
This comment has been removed by a blog administrator.
家出 said...
This comment has been removed by a blog administrator.
素人 said...
This comment has been removed by a blog administrator.
右脳左脳チェッカー said...
This comment has been removed by a blog administrator.
出張ホスト said...
This comment has been removed by a blog administrator.
友達募集 said...
This comment has been removed by a blog administrator.
家出掲示板 said...
This comment has been removed by a blog administrator.
プロフ said...
This comment has been removed by a blog administrator.
乱交パーティー said...
This comment has been removed by a blog administrator.
家出 said...
This comment has been removed by a blog administrator.
逆¥交際 said...
This comment has been removed by a blog administrator.
プロフ said...
This comment has been removed by a blog administrator.
出張ホスト said...
This comment has been removed by a blog administrator.
彼氏募集 said...
This comment has been removed by a blog administrator.
若妻 said...
This comment has been removed by a blog administrator.
家出 said...
This comment has been removed by a blog administrator.

Post a Comment