Page 1 of 1

JavaScript Using JavaScript and the .fetch api, write the javascript code to retrieve the message (message.php). assume

Posted: Sat May 14, 2022 7:26 pm
by answerhappygod
JavaScript
Using JavaScript and the .fetch api, write the javascript code
to retrieve the message (message.php). assume that there is an html
field called 'userName' and you must pass that value from that
field as a parameter via an http get (uname) into the
message.php script. The message.php will return a welcome message
that includes the supplied uname parameter's value. The response
should be loaded into a div with an id of 'welcome'.