the HREF tag that makes a new window open when clicked

They have: 20 posts

Joined: Oct 2000

Hi there

I'm looking for the code for a link that will open a new window

please score me a good resource to search out if you can

thanks

Andrew

They have: 1,587 posts

Joined: Mar 1999

<A HREF="link.html" TARGET="_blank">'

They have: 9 posts

Joined: Dec 2000

I believe you can also use TARGET="new" to do the same thing.

He has: 176 posts

Joined: Oct 1999

And you can also use target="_top"

They have: 30 posts

Joined: Oct 2000

Hi All,

Why not JavaScript like thisor something in that vain? At least you have control over size and location of the popup window. Not Good ???

Later On

CaIslander
From The Land Of SunShine, Surf & Code
WebXpertz Community Forums for Webmasters & Developers

They have: 20 posts

Joined: Oct 2000

It looks wicked but I can't get it to work

this is my link to it : http://205.178.180.120/motelsandhotels.co.nz/jscriptjump.htm

this is my code:

<script language="Javascript">

</script>

It don't work

They have: 30 posts

Joined: Oct 2000

hi Again,

Remove the <script> tags from around the link, as it isn't needed, then use the link like any other link
put this in
Search Here I changed the URL of your page to an absolute to check the link, you can change it back to a reletive address.

Later On

CaIslander
From The Land Of SunShine, Surf & Code
WebXpertz Community Forums for Webmasters & Developers

They have: 20 posts

Joined: Oct 2000

Thanks alot I've got it going now, much better than the other one - now to get it to a full size screen - will the size differ with different resolutions or different size monitors?

Thanks again mate

They have: 30 posts

Joined: Oct 2000

Hey Andy,

If you always need the window to be a full window then use one of the other methods listed above as it will save you some coding Wink, use this setup when you need a specific sized window or to have a window a certin size and wish to control the placement on the viewers screen. But if you just want a full window use the target="" attributes listed above.

Later Smiling

CaIslander
From The Land Of SunShine, Surf & Code
WebXpertz Community Forums for Webmasters & Developers

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.