Crackpot21
Technical User
I am hoping this is easy, but I have been searching all day with no success. What I am doing is very simple:
I have a page with an iframe and a button to print the contents of the iframe. When the page opens, the browser security chimes in with the "Do you want to ...."
I would like the print button not to show until Javascipt has been enabled.
So this is what I have:
So with this the print button shows no matter what, but I want the button not to appear unless they agree or enable Javascript in IE.
I have a page with an iframe and a button to print the contents of the iframe. When the page opens, the browser security chimes in with the "Do you want to ...."
I would like the print button not to show until Javascipt has been enabled.
So this is what I have:
Code:
<script type='text/javascript'>
function show_content() {
document.getElementById("js")<!--.style.display = "none"; -->
}
window.onload = show_content;
</script>
<div id="js" class="printbutton">
<input type="button" value="Print Document" onclick="iPrint(myFrame);" />
</div>
So with this the print button shows no matter what, but I want the button not to appear unless they agree or enable Javascript in IE.