Hello, I need to call these two separate functions as this is the only code that only one works how do I both work?
<script type="text/javascript">
window.onload = function() {
if ('a' == 'a')
{
document.getElementById("nomeprodut").innerHTML = "Altera nome do produto";
}
}
</script>
<div id="nomeprodut"></div>
<script type="text/javascript">
window.onload = function() {
if ('b' == 'b')
{
document.getElementById("b").innerHTML = "grghgh";
}
}
</script>
<div id="b"></div>