2082 7

CSC329 ยท 2082 ยท 5 marks

Write an HTML script with proper JavaScript that will take an input from prompt box and display the input as output using the alert box.

Write an HTML script with proper JavaScript that will take an input from prompt box and display the input as output using the alert box. [5]

Web TechnologyChapter 4: Client Side Scripting with JavaScriptPopup Boxes
  • Prompt box is used to fetch/take value from the user. - Syntax: prompt("message", "default value"); - Alert box is used to display a message to the browser. - Syntax: alert("message"); The task is to combine both: take input using prompt() and display that input using alert(). --- --- Step Desc...