I have a js file that loads onto my page, that contains this code:
function m_ASSUREV17() {
document.getElementById("t_ASSUREV17").innerHTML = t_ASSUREV17;
document.getElementById("c_ASSUREV17").innerHTML = c_ASSUREV17;
document.getElementById('p_ASSUREV17').src=p_ASSUREV17;
document.getElementById('u_ASSUREV17').href=u_ASSUREV17+var_TRACK;
}
console.log("ASSUREV17");
When I call function m_ASSUREV17() on the page:
<script>
m_ASSUREV17();
</script>
I get this error:
m_ASSUREV17 looks clearly defined to me, and the console log confirms that the file loaded, what could possibly be the issue here?
If the console loads the log message, doesn’t that mean the function declared before it, indeed defines m_ASSUREV17?
Thanks!