Can someone tell me how to implement that same functionality in the body of a topic?
My company has a requirement that the Print button be in the topic body, but the code they use brings up a second window that users then have to use Print in the web browser to print.
I'd like to bring up the Print window like Flare does instead, if that's possible.
Here's the code they embed in the topic body for the Print button:
Code: Select all
<a id="wpart1" href="#" onclick="javascript:printTopic();"><img border="0" src="Resources/Images/printable.gif" alt="Printable Version" title="Print this topic" /></a>
Code: Select all
function printTopic () {
var path = document.location.pathname
path = path.substring (path.lastIndexOf ("/")+1) + "#webprint"
return window.open (path)
}