Ask Question
4 September, 10:32

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.

+4
Answers (1)
  1. 4 September, 10:44
    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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers