I want to replace the word null with the word REPLACED in my chrome extension popup
My HTML
<!DOCTYPE html>
<html>
<head>
<script src="popup.js" type="text/javascript"></script>
</head>
<body>
<h1> Wordnik Lookup </h1>
<p id = "userselect">null</p>
</body>
</html>
My popup.js:
document.getElementyById("userselect").innerHTML = "REPLACED!";
The error message I get from inspecting the popup
Uncaught TypeError: document.getElementyById is not a function
Any help on this would be greatly appreciated :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…