DarkConsultant
Programmer
Hi everyone,
I am using an onClick event to redirect to a new page but cannot achieve this ...
My code is
<a href='page1.php' onClick="return redirect (' >Click Here</a>
It works fine.
The problem is I wanted to open the bbc link in a new tab but when when I change the link to (' target='_blank') I get redirected to page1.php.
I have tried every way I can to add the target='blank' but all ways seem to stop it working.
Any help would be greatly appreciated.
TIA
David
DarkConsultant
Live long and prosper \\//
I am using an onClick event to redirect to a new page but cannot achieve this ...
My code is
<a href='page1.php' onClick="return redirect (' >Click Here</a>
It works fine.
The problem is I wanted to open the bbc link in a new tab but when when I change the link to (' target='_blank') I get redirected to page1.php.
I have tried every way I can to add the target='blank' but all ways seem to stop it working.
Any help would be greatly appreciated.
TIA
David
DarkConsultant
Live long and prosper \\//