By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

Open in new window with CSS?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
"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

P: n/a
"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

P: n/a
"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.