Hi,
I know this is probably going to be a really easy question, but i'm quite new to this and am a little stumped.
I have an iframe print function that prints just the blog post it is on, but i was to add a bit of copy onto the bottom of the page... how can I do this? Below is the script I am using, I have tried replacing 'ifmcontentstop rint'with the text, no luck any suggestions would be very welcome:
Here's the code:
I know this is probably going to be a really easy question, but i'm quite new to this and am a little stumped.
I have an iframe print function that prints just the blog post it is on, but i was to add a bit of copy onto the bottom of the page... how can I do this? Below is the script I am using, I have tried replacing 'ifmcontentstop rint'with the text, no luck any suggestions would be very welcome:
Here's the code:
Code:
// Print recipe using iframe
function printRecipe(){
var content = document.getElementById("recipe");
var pri = document.getElementById("ifmcontentstoprint").contentWindow;
pri.document.open();
pri.document.write(content. innerHTML);
pri.document.close();
pri.focus();
pri.print();
}