Re: Javascript Print Issue

Subject: Re: Javascript Print Issue
From: Peter Kleczka <pkleczka -at- yahoo -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 16 Oct 2001 19:13:50 -0700 (PDT)

Kelly

I tried this in IE5.5 and the onclick event
certainly work. However, there is no
built-in JavaScript function called
"cmdPrint_onclick()". The syntax for
your button looks more like you're
trying to call a JScript or VBScript
function.
Try the following which opens the print dialog:

<input type="button"
value="Print This Page"
onclick="javascript:window.print()">

Happy scripting,
Pete (pkleczka -at- yahoo -dot- com)

--- Kelly Williamson wonders
> why the following javascript, which works in IE4 and
> IE5, does not work in IE5.5>

> <input id=cmdPrint
> type=button
> name=button1
> value="Print This Page"
> LANGUAGE=javascript
> onclick="return cmdPrint_onclick()">
>
> Thanks,
> Kelly Williamson
> kwcwtech -at- iwaynet -dot- net


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Announcing new options for IPCC 01, October 24-27 in Santa Fe,
New Mexico: attend the entire event or select a single day.
For details and online registration, visit http://ieeepcs.org/2001

Your monthly sponsorship message here reaches more than
5000 technical writers, providing 2,500,000+ monthly impressions.
Contact Eric (ejray -at- raycomm -dot- com) for details and availability.

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.


References:
Javascript Print Issue: From: Kelly Williamson

Previous by Author: Dreamweaver/Dumbweaver Printing ???
Next by Author: RE: UNIX or Unix?
Previous by Thread: Javascript Print Issue
Next by Thread: Re: Javascript Print Issue


What this post helpful? Share it with friends and colleagues:

Sponsored Ads


Sponsored Ads