What's new
HTML Forums | An HTML and CSS Coding Community

Welcome to HTMLForums; home of web development discussion! Please sign in or register your free account to get involved. Once registered you will be able to connect with other members, send and receive private messages, reply to topics and create your very own. Our registration process is hassle-free and takes no time at all!

Embedded HTML Print Function not working

coopfab

New member
Good morning:

This small html instruction works in my browser but when it's embedded in our website, the button responds but it doesn't bring up the printer function.

<html>

<script>
function printpage()
{
window.print();


}
</script>
<body>
<p> Please print and fill out donation slip and mail with your donation. Thanks.</p>

<button onclick="printpage()">PRINT</button>
</body>
</html>

Any help you can give would be much appreciated. Thanks. Michael
 
Back
Top