Ich arbeite mit Webbrowser control .net, folgender Java-script code wird nicht auf jedem Rechner ausgeführt.
Bei Windows 7 home premium 32 bit nicht. Mit Windows 7 professional 64 bit schon.
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script>
function doalert() {
let element = document.getElementById('MeinName');
element.textContent = "MeinTextZweiter";
alert("MeinAlert");
}
</script>
</head>
<body>
<h3 id="MeinName">MeinText</h3>
<button id="ButtonName" onclick="doalert()">MeinButton</button>
</body>
</html>
Weiss jemand Rat ?