Unfortunately the code Klemen gave does not validate as valid xhtml.
In xhtml the target attribute is not allowed anymore.
Proper xhtml coding dictates that the user should have a choice if the link is opened in a new window or in the current window.
In modern browsers use shift+click to open a link in a new window, user ctrl+click to open in a new tab.
Code that validates is this:
Change line 989 (this is the line number i have in PSPad, not 987)
Code: Select all
<p style="text-align:center"><a href="'.$settings['website_url'].'">Back to '.$settings['website_title'].'</a>
to
Code: Select all
<p style="text-align:center"><a onclick="javascript:window.open(\''.$settings['website_url'].'\');">Back to '.$settings['website_title'].'</a>
A problem with this code is that the cursor does not change to a hand on mouseover. To fix this there are two solutions:
Solution 1 (which i would prefer, but unfortunately Firefox still does not show the hand cursor).
Code: Select all
<p style="text-align:center"><a onclick="javascript:window.open(\''.$settings['website_url'].'\');" style="cursor: hand;">Back to '.$settings['website_title'].'</a>
Solution 2 (which has as a setback that the current page is reloaded in the current window, but otherwise works perfectly and does show the hand cursor in all browsers)
Code: Select all
<p style="text-align:center"><a href="" onclick="javascript:window.open(\''.$settings['website_url'].'\');">Back to '.$settings['website_title'].'</a>
Greetings,
Henrie