使用している関数と混同しています。ページが最初に読み込まれたときにポップアップする警告メッセージを表示しようとしています。また、Window.navigator オブジェクトを使用して、現在使用しているブラウザーをユーザーに表示しようとしています。まだ必要なものがいくつかありますが、何も表示されません。入力したコードから。いくつかのポインタ?それとも私がすべきことの解決策ですか?
js は次のとおりです。
function myFunction_3() {
var newel = document.createElement("Skills");
var text = document.createTextNode("Proficient with");
txt = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
document.getElementById("flow").innerHTML=txt;
newel.appendChild(text);
document.getElementById("list").appendChild(newel);
newel.appendChild("rightcol")
alert("Page is loaded");
}