In one of the web applications, you need something similar to what you are asking for. This is a link to frequently asked questions, in which the page of frequently asked questions was published, and the user wanted to get it if they so wished.
I did this by simply adding a button in html:
<input type="button" value="Print" onClick='window.print();' /> <input type="button" value="Close" onClick='window.close();' />
Since I pulled this into my small browser window, I removed all other controls from the parent page with:
function popFaq() { window.open('faq.html', '', 'left=10, top=10, width=550, height=700, resizable=1, ' + 'location=0, personalbar=0, scrollbars=1, statusbar=0, toolbar=0, menubar=0'); } ... and ... <div id='hLink'> <a title='Click Here for (F)requently (A)sked (Q)uestions' href='' onclick='popFaq(); return false;'>FAQ</a> </div>
Hope this helps!
Jim
source share