How to open a document in a separate window from a site map

Posted by Sean on Stack Overflow See other posts from Stack Overflow or by Sean
Published on 2010-05-06T18:50:13Z Indexed on 2010/05/06 18:58 UTC
Read the original article Hit count: 203

Filed under:
|
|

I was hoping to open a document in a menu control using a sitemap. I am using the following code in the sitemap but get an error. I would like to be able to click on the menu item, have it open the sample doc in a new window, but not to have the original page navigate to a new place (essentially to do nothing on the main page.)

<siteMapNode url="javascript:widow.open('Sample.doc','SampleName'); return false" title="FAQs"  description="FAQs" />

Any idea? Is there some javascript I can use that does not require me to register a function on every page?

© Stack Overflow or respective owner

Related posts about sitemap

Related posts about menu