Netscape does not allow you to write to a window once the document
stream has been closed. If you try alert("bla") instead of
document.write("bla") you'll probably find it will work, but you'll need
another idea - maybe open a new window or write the text into a TEXTAREA
(yuk! I know...)
good luck
Vishwa wrote:
>
> Hello,
>
> I have a javascript problem. The following code tries to write a word on
> click of a button. But this works fine on IE but not on netscape.
>
> <html>
> <head>
> <SCRIPT language="javascript">
> function callclick() {
> document.write("bla");
> }
> </SCRIPT>
> <title>TESTING</title>
> </head>
>
> <body>
> <form>
> <input type='button' value='click' onclick='callclick();'></input>
> </form>
> </body>
> </html>
>
> Anybody there ????
>
> TIA,
> vishwa
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
Regards
Steve Bradshaw
Software Developer, Autonomy Systems Ltd.
St. John's Innovation Centre - Cowley Road - Cambridge - CB4 0WS -
UK
Web: http://www.autonomy.com/
Tel: +44 1223 422460
Fax: +44 1223 421583
The information contained in this message is for the intended addressee
only and may contain confidential and/or privileged information. If you
are not the intended addressee, please delete this message and notify
the sender; do not copy or distribute this message or disclose its
contents to anyone. Any views or opinions expressed in this message are
those of the author and do not necessarily represent those of Autonomy
Systems Limited or of any of its associated companies. No reliance may
be placed on this message without written confirmation from an
authorised representative of the company
*** Have a taste of Autonomy's technology for free.
Download Kenjin at www.kenjin.com ***
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html