Welcome aboard! We are happy you are here and wish you good net-raft!
// window_navigator.ts
class window_navigator
{
navigator()
{
var txt;
txt = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
document.getElementById("content").innerHTML=txt;
}
}
window.onload = () =>
{
var win = new window_navigator();
win.navigator();
};
// Window_Navigator.htm
<!DOCTYPEhtml>
<htmllang="en"xmlns="http://www.w3.org/1999/xhtml">
<head>
<metacharset="utf-8"/>
<title>TypeScript</title>
<linkrel="stylesheet"href="app.css"type="text/css"/>
<scriptsrc="app.js"></script>
</head>
<body>
<divid="content"style="color:#0c8813"/>
</body>
</html>
The most helpful TYPESCRIPT solutions