How can I open search result in a new window?
-
Wednesday, September 15, 2010 7:31 PM
Hi there,
Is it possible to open a search result in a new window? If yes then how? Thanks in advance.
allan
All Replies
-
Thursday, September 16, 2010 2:55 PM
Do you want the entire page containing the search results to open in a window or the individual links to each search result to open in a new window? If it's the latter, you can just edit the results.aspx page and then edit your CoreResultsWebPart. Open the XSL Editor and you can find the <a> links in there and add target="_new" to each link to have it open in a new page.
Corey Roth blog: www.dotnetmafia.com twitter: @coreyroth- Proposed As Answer by Aaron Rendell Thursday, September 16, 2010 3:37 PM
-
Tuesday, February 22, 2011 6:40 PMI am interested in the 1st option of opening the entire page containing the search results to open in a new window. Is it possible? I can't find any way through Search Settings or the Search Box web part.
-
Tuesday, February 22, 2011 6:50 PMI don't know that there is an easy way out of the box. You can try writing a new web part and inheriting from SearchBoxEx, but there would be quite a bit of effort involved.
Corey Roth blog: www.dotnetmafia.com twitter: @coreyroth -
Tuesday, February 22, 2011 7:24 PMit seems like this would be an obvious setting in the OOB search box web part. wonder why it wasn't included by MS.
-
Thursday, July 12, 2012 5:02 PM
Hi Corey,
I too have tried editing the XSL code to add target="_blank" to the href tag of the core results web part and the onclick code without success. Let us know if you think of anything else.
Thanks in advance!
- Edited by KMS99 Thursday, July 12, 2012 5:05 PM

