How to change a div's innerHTML after redirecting?
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-03-28T17:55:52Z
Indexed on
2010/03/28
18:03 UTC
Read the original article
Hit count: 427
JavaScript
I am trying to change the innerHTML of a div on the page that I am loading.
This is my JavaScript code:
function redirect(titleName){
window.location = "pageToLoad.php";
document.getElementById("title").innerHTML = titleName;
}
It doesn't seem to be working, please help me!!
© Stack Overflow or respective owner