You are here: Re: Target _blank « HTML « IT news, forums, messages
Re: Target _blank

Posted by G�rard Talbot on 10/25/05 06:57

pacal wrote :
> Jorge A wrote:
>
>> ¡Hi!
>>
>> I have created a link with property "target _blank". Every new link is
>> loaded in a new window.
>>
>> How can I load every new link in the SAME window?
>>
>> Thanks in advance
>
> you have to use javascript like underneath
>
> <a onClick="javascript:window.open('file-to-open.ext','
> framename-to-open','scrollbars,width=900,height=750,alwaysRaised=Yes/no,dependent,top=2,left=2')\"

width and height values will be too big for 800x600 scr. res. users; so
these values will be corrected eventually by error correction mechanisms
in browsers.
alwaysRaised and dependent are only supported by Mozilla-based browsers
and Netscape; besides, the value given for alwaysRaised is wrong.
As given, the windowFeatures string list will make the new window
non-resizable.

> href="#">
>

href="#" is always wrong:
http://developer.mozilla.org/en/docs/DOM:window.open#Never_use_.3Ca_href.3D.22.23.22_onclick.3D.22window.open.28....29.3B.22.3E


> if you give framename-to-open the same name in every link all
> file-to-open.ext wil be opend in the same frame (window)
> ideal for viewing items in a list of records (on a local lan ofcourse)
>
> or google for javascript:window.open() for more parameters
>
> pacal


Gérard
--
remove blah to email me

 

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

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