PDA

View Full Version : Javascript and Mac OS


ZiaJet
10-23-2002, 12:20 AM
I've coded a javascript function that reads as follows:
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function varitext(text){
text=document
print(text)
}
// End -->
</script>
<body>
<FORM>
<INPUT NAME="print" TYPE="button" VALUE="Print this page as your receipt!" ONCLICK="varitext()">
</FORM>
</body>
This code performs as expected on any windows os with IE or Netscape; however, when you click on the button using a MAC, it seems as if the function never gets called; therefore, no printing mechanism gets envoked.
Does anyone have any suggestions on how to make the function work cross-platform?

Thanks in advance for anyone that has some meaningful answers,
Jean-Raul