What would be the easiest way to provide a popup or a new window that would allow a user to switch out to an external URL? I'd like to provide the ability for the user to perform a search against an internal search engine but on a new page.
Thanks !
Tod wrote:
What would be the easiest way to provide a popup or a new window that would allow a user to switch out to an external URL? I'd like to provide the ability for the user to perform a search against an internal search engine but on a new page.
<a target="_blank"> or <form onsubmit="window.open()"> would be easiest if you have direct control of the HTML output.
Otherwise, you can use JavaScript to select the appropriate element and modify it as necessary.
It shouldn't be too difficult either way. Google around if you need examples.
MZMcBride
http://www.mediawiki.org/wiki/Manual:$wgExternalLinkTarget can be done to effect all outbound links.
Here on the outdated page about it, gives a little bit of information about why people really dislike it when you do that: http://www.mediawiki.org/w/index.php?title=Manual:Opening_external_links_in_...
2011/4/21 K. Peachey p858snake@gmail.com
http://www.mediawiki.org/wiki/Manual:$wgExternalLinkTarget can be done to effect all outbound links.
Here on the outdated page about it, gives a little bit of information about why people really dislike it when you do that:
http://www.mediawiki.org/w/index.php?title=Manual:Opening_external_links_in_...
Could this option be added to user preferences?
Alex
On Thu, Apr 21, 2011 at 4:59 PM, Alex Brollo alex.brollo@gmail.com wrote:
2011/4/21 K. Peachey p858snake@gmail.com
http://www.mediawiki.org/wiki/Manual:$wgExternalLinkTarget can be done to effect all outbound links.
Here on the outdated page about it, gives a little bit of information about why people really dislike it when you do that:
http://www.mediawiki.org/w/index.php?title=Manual:Opening_external_links_in_...
Could this option be added to user preferences?
Alex
The opening in a blank window or not to? I'm sure there is a javascript snippet floating around for it somewhere that could be installed in their userspace (eg: user:user/common.js) or setup as a gadget (for communities with that ext enabled)
wikitech-l@lists.wikimedia.org