D
Don G
Is is possible to access the <title> element using JavaScript? In my
HTML, I have:
<title id="bob"></title>
and in my JavaScript I have:
bobtext = "test";
document.getElementById('bob').innerHTML = bobtext;
I am using similar code elsewhere to change a caption, but it doesn't
work here. So, is it just not allowed to modify <title> in this way, or
am I doing something wrong?
Thanks,
Don
HTML, I have:
<title id="bob"></title>
and in my JavaScript I have:
bobtext = "test";
document.getElementById('bob').innerHTML = bobtext;
I am using similar code elsewhere to change a caption, but it doesn't
work here. So, is it just not allowed to modify <title> in this way, or
am I doing something wrong?
Thanks,
Don