html question ******
- Started
- Last post
- 7 Responses
- jg_2
hi mates!
here goes one question:
i have this line in my html doc:
yes, you can kill me. is to make every link open in a new window.
the question is, i want some exceptions. how can i make it. i already tried with css. but the code doesnt work.
any ideas?
very much thank!
- zaven0
target="_blank"
- jg_20
sorry, was a mistake on my post. that line (thanks zaven) already appears:
base target="_blank"
i put it before the body tag just to make everylink open in a new browser window but....
thanx
- zaven0
i'm confused, i dont understand what you need!
target="_blank"
opens in a new windowtarget="_self"
opens in same frametarget="_parent"
opens replacing a framesettarget="_framename"
opens in a frame with a name
- jg_20
i know everything you said. what i mean: i have one code that makes every link opening in a new window. so i don have to program every link in a page. but there are 2 or 3 links i dont want to open in a new window. the normal code (you already wrote) doesnt work, and some stuff with css i already tried,didnt work as well.
too confusing? sorry. maybe we should forget it! :(
- zaven0
are you using a javascript or a css?
if is a css create a new css file with the new action, and try to link to it
Actually i don't know a shit about javascript and i use css only for font issues, so maybe it's all bullshit and programmer are laughing at me in this moment...
I shouldnt have drink all that wine at lunch, but it was good
- jg_20
thanx for the tip... actually there is no css. but i will try it again with css.... i have no idea of java as well!
:P
(is a must to enjoy gooood wine)
- sparker0
you can try to place "target='_self'" in the few links you want to open in the same window. it might override the 'base' decloration.
please note: "target" within the "base" xhtml element is deprecated, now.
and css doesn't control opening windows, pop-up's, etc, it is a visual style language. so there isn't a way to do it, purely in css.
you might consider javascript for, or a little php.
i have to ask though, why open things in new windows? why not just utilize the current browser space? what in the design makes it worth relying on seperate windows? just as a personal opinion, i usually leave sites that continually open new windows.