Re[2]: [PHP] Using Javascript
| From: | Zoltan Konyves | Date: | Sat, 24 Aug 2002 07:57:36 +0000 |
| Subject: | Re[2]: [PHP] Using Javascript | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113913@lists.php.net to get a copy of this message | ||
php-general@lists.php.netHello Uma,
Saturday, August 24, 2002, 7:55:04 AM, you wrote:
UST> Received: (qmail 13081 invoked from network); 24 Aug 2002 04:58:10 -0000
UST> Received: from unknown (HELO lantana.iitm.ernet.in) (202.144.28.166)
UST> by s1.home.ro with SMTP; 24 Aug 2002 04:58:10 -0000
UST> Received: from lantana.iitm.ernet.in (lantana.iitm.ernet.in [144.16.241.207])
UST> by lantana.iitm.ernet.in (8.11.0/8.11.0) with ESMTP id g7O4t4s23171
UST> for <zolikonyves@home.ro>; Sat, 24 Aug 2002 10:25:05 +0530
UST> Date: Sat, 24 Aug 2002 10:25:04 +0530 (IST)
UST> From: "Uma Shankari T." <umashankari@lantana.tenet.res.in>
UST> X-Sender: umashankari@lantana.iitm.ernet.in
UST> To: Zoltan Konyves <zolikonyves@home.ro>
UST> Subject: Re: [PHP] Using Javascript
UST> In-Reply-To: <10911340059.20020727121155@home.ro>
UST> Message-ID: <Pine.LNX.4.21.0208241022170.23113-100000@lantana.iitm.ernet.in>
UST> MIME-Version: 1.0
UST> Content-Type: TEXT/PLAIN; charset=US-ASCII
ZK>>Hi,
ZK>>
ZK>>Try to use:
ZK>><input type="text" name="text1"
ZK>> onClick="dd.value='<? echo $correct; ?>';">
ZK>>
ZK>>
UST> Hello,
UST> this code is working in IE but not in netscape.i have tried like this
UST> document.formname.textname.value='<? echo $correct; ?>';
UST> it is not showing any error but nothing is displaying..
UST> Can ypu please tell me how to do with this
UST> Thanks & Regards
UST> Uma
You must use "onFocus" instead of "onClick".
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
</head>
<body>
<form action="test.html" name="x">
<input type="text" name="t1"
onFocus="document.x.t1.value='123'">
</form>
</body>
</html>
--
Best regards,
Zoltan mailto:zolikonyves@home.ro