In my sidebar (sugarcube 1.x) I currently have a print and re-roll button. The reroll refreshes the content of the current passage and the print prints the pages contents. What I would like to do is to print only what is displayed in the passage. Below is my current code any recommendations are appreciated.
<input type="button" value="Re-Roll" onClick="window.location.reload()">
<input type="button" value="Print" onClick="window.print()">