Reply to Re: Forcing a script to open a link in a new window or tab

Your name:

Reply:


Posted by freemont on 05/06/06 03:54

On Fri, 05 May 2006 20:45:12 -0400, freemont wrote:

> On Fri, 05 May 2006 08:47:15 +0000, Jeremy Brown wrote:
>
>> Thank you for the help. Where would I put this tag, as I am unfamiliar
>> with its use. I am a bit slow.
>
> Just stick that in any anchor tag you have, and it'll open in a new
> window.
>
> <a onclick="window.open(this.href,'_blank');return false;" href="a valid
> link here">text or image</a>
>
> Dunno if it'll help your situation, but there it is. That's what I use.
> Not that much more code than target="_blank".

Caveat: I would only open new windows when the link is to an external
website OR if it's really necessary. Like, for a smaller popup form or
something. Don't litter the user's monitor with unnecessary windows and/or
tabs.

--
"Because all you of Earth are idiots!"
¯`·.¸¸.·´¯`·-> freemont© <-·´¯`·.¸¸.·´¯

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация