Add Javascript to complete the program as described using<script> tags within the <head> tags.
Question: You have a server-side script that cannot handle anyampersands (&) in the form data. Write a function that convertsall ampersands in a form field to ” and ” when the field losesfocus (blur).
This program uses HTML, Javascript, and appropriate structures asneeded.
If you could include detailed comments throughout the codestructure I would be most appreciative. Thank you.
Solution