Last post Jun 21, 2020 07:16 PM by hdjfu
Member
1 Points
2 Posts
Jun 21, 2020 06:23 PM|hdjfu|LINK
<script> function mudaFoto (foto){ document.GetElementById('icone').src = foto } </script>
<ul type=""> <li onmouseover="mudaFoto('_imagens/home.png')"><a href="index.html">Home</a></li>
when the mouse is over, send me this error on console browser: TypeError: document.GetElementById is not a function
How do i can fix?
All-Star
53081 Points
23652 Posts
Jun 21, 2020 06:52 PM|mgebhard|LINK
JavaScript is case sensitive. The syntax is is a lower case g.
document.getElementById('icone').src = foto
Jun 21, 2020 07:16 PM|hdjfu|LINK
Thank you very much for answering me
Member
1 Points
2 Posts
Error: TypeError: document.GetElementById is not a function
Jun 21, 2020 06:23 PM|hdjfu|LINK
<script>
function mudaFoto (foto){
document.GetElementById('icone').src = foto
}
</script>
<ul type="">
<li onmouseover="mudaFoto('_imagens/home.png')"><a href="index.html">Home</a></li>
when the mouse is over, send me this error on console browser: TypeError: document.GetElementById is not a function
How do i can fix?
All-Star
53081 Points
23652 Posts
Re: Error: TypeError: document.GetElementById is not a function
Jun 21, 2020 06:52 PM|mgebhard|LINK
JavaScript is case sensitive. The syntax is is a lower case g.
Member
1 Points
2 Posts
Re: Error: TypeError: document.GetElementById is not a function
Jun 21, 2020 07:16 PM|hdjfu|LINK
Thank you very much for answering me