Hi, could someone tell me how I can get a link on my page to open in a new window? (yes i tried google)
Also, does anyone know any good website design forums other than Antionline? :)
Thanks
Printable View
Hi, could someone tell me how I can get a link on my page to open in a new window? (yes i tried google)
Also, does anyone know any good website design forums other than Antionline? :)
Thanks
<a href="http://www.whereitlinksto.com" target="blank">your
link here</a>
there ya go
v_Ln
You have to put a target attribute on the <a> element.
If as valhallen says, you put <a target="blank"> then it may not *always* open in a new window, it will open in a window called "blank" (if that window already exists, it will be reused).
Windows (and frames) have names, these cannot easily be seen, but are reused if you target another link at the same one. If that window doesn't exist, it is created.
Perhaps you want <a target="_blank"> ?
I tried putting that as a link, but I got an error message "No such device or address". what have i done wrong?
yeah "_blank" will work better.
"No such device or address" sounds a bit dodgy.
Are you sure you put in the href attribute correctly? AFAIK, setting the target to either "_blank" or "blank" should not cause that message, but screwing up the href (conceivably) might.
Check that your href attribute contains a valid relative or absolute URL.
you need to use _blank. blank is not html 4.0 confirming..
just add the target param to you a tag as alread described
testtext
_new will also work.
I think he should use _oogyboogy
Hold down shift key when you click the link......
in the link.... onclick="return openawindow('awebpage.htm')
this script will receive the address and open a window pointing to that address:
function openawindow(a_URL){
var newWindow;
newWindow=window.open(a_URL,"mynewWindow","width=400",height="600");
newWindow.focus();
return false;
}
maybe thats what u were lookin for???
Synaptic, I think that's a little more than he was looking for. He just said he needed to open a new window, not specify its size and etc.
I used a demo of Dreamweaver to use some 'open in new window' function, but it didnt work when i pasted it into the other program.
If i give the site, could someone type out the link that i need to enter?
I need to link to http://www.lccc.co.uk (Lancashire County Cricket Club)
thanks for your help.
Using Javascript to make new windows when simple target attributes will work is just... well... sort of like going out of your way to make life difficult for everyone.
Popup-blockers will often block new javascript-made windows, but using the target attribute is more likely to keep your site 'workable' for people who hate popups.
try something that no other site would have like "_djhuk"