I was hoping to open the document in a menu control using a site map. I am using the following code in a sitemap but I get an error. I would like to be able to click on a menu item whether it opens a sample document in a new window, but not so that the original page moves to a new location (essentially nothing to do on the main page.)
<siteMapNode url="javascript:window.open('Sample.doc','SampleName'); return false" title="FAQs" description="FAQs" />
Any idea? Is there any javascript I can use that does not require me to register a function on every page?
source
share