Forum Moderators: phranque
I am using the following link format...
<a href="http://www.foo.com" target="_blank">link</a>
However the lnk opens within the iframe as opposed to a new window?
Any ideas. I was thiking I might have to pass a variable to a script then use a framebuster to open the link fully?
Mack.
:)
Well you can use this kind of links
<a href="javascript:window.open('http://www.foo.com')">link</a>
or use a funtion in your docuemt's head and just link to it
<a href="javascript:openit('first_link')">link</a>
<script type="text/javascript">
function openit(x) {
switch (x)
case 1:
ven = window.open("http://www.foo.com/","foo","width=200,height=200");
brake;
case 2:
...
brake;
}
</script>
Or you can try some variations with JavaScript
Of course if you want to open the link in the top of the current window, you can try target="_top" or target="_parent"
Good luck
Bye