[thelist] print button thoughts

John C Bullas jcbullas at nildram.co.uk
Mon Nov 24 17:39:12 CST 2003


At 22:10 24/11/2003, you wrote
>Hi
>
>I just did some user testing on a site and one request was for a 'print'
>button on an editorial page.
>
>I guess the idea is that would bring up the print dialog of the browser.
>Does anyone have any thoughts on this?

in HEAD

<script language="JavaScript">
function myprint()
{
window.print();
}
//  End -->
</script>

in BODY

<input type=button value="Print Page" onClick="myprint()" name="button">

anyone test it for compatibility

very simple

FB


>Presumably any code will have to handle multiple browsers, or is there
>some international agreement on this. Or is it just a really bad idea
>anyway (the browser gives you a print facility, what's wrong with that?).
>
>The page, incidentally, has no frames or anything spectacular. It uses CSS
>positioning and there'll be a print stylesheet.
>
>Thanks in advance for any help and opinions.
>
>Cheers
>J



More information about the thelist mailing list