Ask Question
7 June, 23:29

Use the writeln () method of the document object to display the user agent in a tag in the webpage. Hint: The userAgent property of the window. navigator object contains the user agent.

+1
Answers (1)
  1. 7 June, 23:57
    0
    Note that writeln () add a new line after each statement

    var txt = "User-agent header: " + navigator. userAgent + " ";

    $ ("#agent"). writeln (txt);

    Then Anywhere in the body tag of the html file

    create a div tag and include an id="agent"
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Use the writeln () method of the document object to display the user agent in a tag in the webpage. Hint: The userAgent property of the ...” in 📙 Engineering if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers