How to use remove.attr on data-position and then print?
<p>I'm trying to write a function that will remove the footer's data-postion fixed attribute, then print the page. I have this linked with an onclick event, but it has no effect to the page.   </p>

<pre><code>function printpage(){
    $('#footer').removeAttr('data-position');
    javascript:window.print()
}
</code></pre>

<p>What am I doing wrong here?</p>
