Ask Question
15 April, 18:49

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.

+3
Answers (1)
  1. 15 April, 22:45
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers