467,874 Members | 1,772 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,874 developers. It's quick & easy.

Open in new window with CSS?

Dear all,

Is it possible to do this with CSS (so that I don't write all that with
every link)?

<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,location =no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=yes,width=15 0,height=20,top=50,left=50
');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?

Thanks in advance,
Pastis
Jul 20 '05 #1
  • viewed: 19710
Share:
4 Replies
Pastis wrote:
Is it possible to do this with CSS
No.
(so that I don't write all that with
every link)?
Put it in a JavaScript function and then call the function.
<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,location =no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=yes,width=15 0,height=20,top=50,left=50
');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?


It's HTML or XHTML with JavaScript.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #2
"Pastis" <fe*********@yahoo.com> wrote in
comp.infosystems.www.authoring.stylesheets:
Is it possible to do this with CSS (so that I don't write all that with
every link)?
No.
<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,locatio n=no,directories=no,status=
no,menubar=no,scrollbars=no,resizable=yes,width=1 50,height=20,top=50,left=50
');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?


It's a perfect abomination -- which, fortunately, is ignored by my
browser.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #3
"Pastis" <fe*********@yahoo.com> wrote in
news:hp******************@amsnews02.chello.com:
Dear all,

Is it possible to do this with CSS (so that I don't write all that
with every link)?

<a href="blabla.mp3" target="new"
onclick="window.open('','new','toolbar=no,location =no,directories=no,st
atus=
no,menubar=no,scrollbars=no,resizable=yes,width=15 0,height=20,top=50,le
ft=50 ');return true;">blabla</a>

What is this, by the way? DHTML, XHTML or what?


It's a piece of inline Javascript being used to create an effect that many
if not most people find extremely annoying, so much so that modern browsers
offer a setting to keep it from happening.
Jul 20 '05 #4
"Eric Bohlman" <eb******@earthlink.net> wrote in message
It's a piece of inline Javascript being used to create an effect that many
if not most people find extremely annoying, so much so that modern browsers offer a setting to keep it from happening.


Oh, I personally, as a user, don't mind it at all when used in the right
places.
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Les | last post: by
10 posts views Thread by Marshall Dudley | last post: by
10 posts views Thread by David McCulloch | last post: by
2 posts views Thread by Samir Pandey | last post: by
3 posts views Thread by NeverLift | last post: by
2 posts views Thread by Larry R Harrison Jr | last post: by
8 posts views Thread by Dominic Tocci | last post: by
7 posts views Thread by anthony.turcotte | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.