|
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
[Back to original message]
|