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.
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.
Rev.Rowane posted this at 07:30 — 2nd February 2000.
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 posted this at 07:53 — 2nd February 2000.
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.