I have a page with a lot of links in it, and I'm opening each link with a new window. The code I'm currently using is working fine, the only problem is that I don't know where I can put the window features at, like:
toolbars=no, menubar=no, scroolbars=no, width=300, and height=300
Anyhow, here's a sample of the code I'm using:
<head>
<!--
function newwin(target)
{
if (target) where = "_blank";
else where = "_blank";
for var i=0; i<=(document.links.length-1); i++)
{
document.links.target = where;
}
}
// -->
</head>
<body>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"one.htm" onclick="newwin(target)">one</a>
<a href="two.htm" onclick="newwin(target)">two</a>
</body>
If you know of another way of opening new windows, provided that there are numerous links on it and that it has to be redirected to a different page than the other, I would really really appreciate it.
Please help...
toolbars=no, menubar=no, scroolbars=no, width=300, and height=300
Anyhow, here's a sample of the code I'm using:
<head>
<!--
function newwin(target)
{
if (target) where = "_blank";
else where = "_blank";
for var i=0; i<=(document.links.length-1); i++)
{
document.links.target = where;
}
}
// -->
</head>
<body>
<a href=http://www.webdeveloper.com/forum/archive/index.php/"one.htm" onclick="newwin(target)">one</a>
<a href="two.htm" onclick="newwin(target)">two</a>
</body>
If you know of another way of opening new windows, provided that there are numerous links on it and that it has to be redirected to a different page than the other, I would really really appreciate it.
Please help...