Have pity on my poor soul

I was wondering if there is anyone out there who will pity my poor soul? I have a piece of JavaScript that is trying at the highest level to put me in an early grave. I am very new to all this and will be forever awesome if someone can see a way to help me before I lose my desire to live.

I need to add the following two groups, the reason and the sender name, to the JavaScript snippet below:

<html>
<head>
<title>(ii)</title)

var recipient
// Declare other variables here

recipient =
    window.prompt ('Please enter the name of the recipient', '');
// prompt for other values here

// output the customised greeting here

</script>

</head>
<body>
</body>
</html>
+3
source share
3 answers

I am not a network genius, and I am not a religious type who can help you in this “sincere” business, but it seems to me that you are missing a tag <script>.

In addition, the closure </title>should end in >, and not ).

: , , SO-, . .

+6

:

  • <title> .
  • <script> .
+2

JavaScript. , , - JavaScript (, , , ).

HTML- , - PHP Servlets, .

+2

Source: https://habr.com/ru/post/1729331/


All Articles