Am Sonntag, 24.08.03 um 17:01 Uhr schrieb Harald Walker:
Mirko wrote:
(...)
..so who know if exist the same code but working under Mac OS ??
...because
actually this javascript are not visible when loading web page under
Mac
Os...and i can not click any link..
The java-script implementation depends on the browser and not the
operating system. There are some significant differences between the
common browsers. As always Internet Explorer on Windows is the
exception since html browsing is embedded deep into the system.
MS Internet Explorer 5 on the Mac does not support the window.print()
method.
...and just another line of thought: don't emulate functions with
JavaScript (or any other method) that are already available in the
browser (ANY browser can print HTML pages). As you can see from your
own example, this is always browser specific.
If you really have to do something with your HTML code to make printing
easier then use CSS. So if your audience uses browsers that are not
able to switch style sheets on the fly, use JavaScript to open the same
page in another window but with another style sheet that makes printing
easier.
But never, ever mess around with the browser's functions. (Another
popular example is: using the history to emulate the "back" button and
failing because the user opened the previous link in a new window.)