window.print method not working in ie browser



    <h1>Pop & print</h1>
    <button onclick="pop();">Pop</button>
    <script type="text/javascript">
    var POP;
    function pop() {
    POP ='', '', 'width=350,height=350');
    POP.document.write("  message content message content message content message content message content <br/>"+"<a href='JavaScript:window.close()' style='float:right;'>Close</a><a href='JavaScript:window.print()' style='float:left; text-decoration:none;'><input type='button' value='Print this page' /></a>");


what am i doing wrong?

Recommended Answers

All 2 Replies

It's not your fault, IE uses a lot of different methods, I personally do not like IE because of how many workarounds one would have to code. IE in my opinion is a major fail.
Please, for the sake of humankind, don't use IE.

Better still use jquery to make ie users happy and yorself 100% compatibility with all browser the next best thing

Look at this and than say jquery rules Click Here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.