Así que tengo este código:
window.location.href = "orderConfirmation.html"; document.onload = orderConfirmation(); // I have tried to use window.onload as well function orderConfirmation () { document.getElementById("test").innerText = "test" // This should make the p element have a body of "test" }En mi orderConfirmation.html tengo un elemento de párrafo con una identificación de "prueba"
Sé que no es un error ortográfico ni nada por el estilo.
Cualquier consejo sería muy apreciado.