🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.javascript
Article #48

Artificial Intelligence

#48
From: David Bradley
Date: Tue, 01 Sep 1998 00:00
6 lines
814 bytes
Right - here's the deal. I want to create a javascript which allows users to
enter text into a text box, press a Submit button - and then get a reply
which depends upon what they have written. All I need is the piece of code
which says "If the text begins with 'Why', reply with Because.........." and
'if the text contains 'If' then reply with 'Then........' You get my
drift??? Any replies would be gratefully received.
Technical Details
Message-ID: <6sgfro$4uk$3@heliodor.xara.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103a72,2af6b165db8f8932,start
X-Google-Attributes: gid103a72,public
From: "David Bradley" <dbradley@globalnet.co.uk>
Subject: Artificial Intelligence
Date: 1998/09/01
Message-ID: <6sgfro$4uk$3@heliodor.xara.net>
X-Deja-AN: 386732368
Newsgroups: fj.lang.javascript
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3