Topic on Project:Support desk

How do you to set a hyperlink to launch in a separate window instance.

4
184.164.106.167 (talkcontribs)

How do you set a hyperlink to launch in a different window - I DO NOT want to launch within the same window as my page is displayed. - go to another page or launch a pdf

normally - you can do following: where: target="_blank" which launches the page in another window or tab.

<a href="http://iswiki.hdfowler.com/mediawiki/index.php?title=Daily_Invoice_Processing" class="external-link" target="_blank">Daily Invoice Process</a>

Malyacko (talkcontribs)

Why do you think it's a good idea to define how a link is opened (new tab vs new window) in a user's browser, instead of letting the user have the usual default behavior of her/his browser?

88.130.94.70 (talkcontribs)

If you want all external links to do so, MediaWiki has a setting for it: $wgExternalLinkTarget. Just add the following to your LocalSettings.php:

$wgExternalLinkTarget = '_blank';

Anyway, please note that doing so forces all external links to open in new windows, which by many users is regarded to be bad behaviour.

184.164.106.167 (talkcontribs)

thank you. We create help topics, with instructions, but sometimes need to view a pdf - in a separate window, while still looking at more steps

Reply to "How do you to set a hyperlink to launch in a separate window instance."