open link in new window

They have: 2 posts

Joined: Feb 2000

Thanks, Jack. Gonna give them a try to see which one works best for me.

------------------
Rev. Rowane

They have: 2 posts

Joined: Feb 2000

Hi Folks;
Does anyone know how to make a clickable link open the other site in a new window?
I used to know but old age seems to be getting the best of me I guess <LOL> 'cause I seem to have forgotten.

------------------
Rev. Rowane

Rev. Rowane
http://www.revrowane.org
Come help us help others!

Jack Michaelson's picture

He has: 1,733 posts

Joined: Dec 1999

There are more options to solve your problem, but the most simple one is:

Give the <a href> a target that does not exists.
Example
<a href="window.htm" target="ThisTargetDoesNotExistsAndThatsWhyItIsOpenedInANewWindow"></a>

You can also do this:
<head>
...
function NewWindow()
{
BrandNew=open('window.htm');
}
...
</head>
<body>
...
<input type="button" onclick="NewWindow()">
...
</body>

With the last option you're able top give the window some properties like:

Brandnew= open('window.htm', 'TheTitle', 'width=200, height=201, status=no, toolbar=no,menubar=no , resizable=no, location=no, scrollbars=no');

Hope it helps,

Jack

[This message has been edited by Jack Michaelson (edited 02 February 2000).]

Shakespeare: onclick || !(onclick)

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.