You are here: Re: Forcing a script to open a link in a new window or tab « HTML « IT news, forums, messages
Re: Forcing a script to open a link in a new window or tab

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

On Thu, 04 May 2006 17:33:47 +0000, Jeremy Brown wrote:

> Hello all,
> I have a small vanity site that is a member of WebRing. They give you a
> script to put on your site that will bring you to the next/previous/random
> site in the ring. I know absolutely nothing about scripting and I wish to
> force the script open the link in a separate window. Can anyone help me
> edit the script so that it will do this?

You could simply add this to the anchor tag:

onclick="window.open(this.href,'_blank');return false;"

.... and that will even validate to XHTML Strict.

HTH

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

 

Navigation:

[Reply to this 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

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