7 replies [Last post]
mattbarb
Offline
Regular
Last seen: 16 years 36 weeks ago
Joined: 2005-10-25
Posts: 21
Points: 0

I need to have multiple windows cany anyone help??????

Many many many thanks,

Matt

Tags:
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 7 years 38 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

XHTML POPUP Can anyone help?

Wanna explain that a bit further? What do you mean by multiple windows?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

mattbarb
Offline
Regular
Last seen: 16 years 36 weeks ago
Joined: 2005-10-25
Posts: 21
Points: 0

XHTML Popups

Hi many thanks for getting back to me.

I have 4 links i want to click and bring up a popup window for each one clicked.

Cheers for your help matt

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 1 year 18 weeks ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

XHTML POPUP Can anyone help?

<a href="some.html" 
   onclick="return !window.open(this.href);">click me</a>

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

mattbarb
Offline
Regular
Last seen: 16 years 36 weeks ago
Joined: 2005-10-25
Posts: 21
Points: 0

popup

How would i do it to open in a set size?

Thanks

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 26 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

XHTML POPUP Can anyone help?

onclick="return !window.open(this.href , this.target , 'width=300, height=300') But be careful with popups! Thanks for posting this to 'Off topic' but also bear in mind that the forum is primarily focussed on CSS problems rather than general web coding. Hugo. P.S title edited.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

wolfcry911
wolfcry911's picture
Offline
Guru
MA, USA
Last seen: 8 years 18 weeks ago
MA, USA
Timezone: GMT-5
Joined: 2004-09-01
Posts: 3224
Points: 237

XHTML POPUP Can anyone help?

do you have a very good reason to open 4 popups? They are being frowned upon more and more. It really ought to be the users choice of whether to have a link open in the current window, a new tab, or a new window. And then you take it even further by setting a specific size and location? I (and many others) would leave your site in a hurry...

Anonymous
Anonymous's picture
Guru

XHTML POPUP Can anyone help?

wolfcry911 wrote:
do you have a very good reason to open 4 popups? They are being frowned upon more and more. It really ought to be the users choice of whether to have a link open in the current window, a new tab, or a new window. And then you take it even further by setting a specific size and location? I (and many others) would leave your site in a hurry...
I second the motion.