L
lejason
Im by no means an expert on Javascript so I could be missing something
completely obvious here but I am having a problem. I want to make a
button that users can click and when they click it, I want new menu
items to apear. So, I was going to use innerHTML - right?
Well, I did this little test and it worked fine in FF and Opera...but
no IE7?!? So I am wondering what I am missing. here is the code
(in the head)
function addmenu() {
document.getElementById("test").innerHTML = "<p>PLEASE WORK!!!!</p>";
}
--------
(later in the body - text should apear in the span)
<span id="test"> </span>
<a href="#" onclick="javascript:addmenu()">Add Another Menu</a>
completely obvious here but I am having a problem. I want to make a
button that users can click and when they click it, I want new menu
items to apear. So, I was going to use innerHTML - right?
Well, I did this little test and it worked fine in FF and Opera...but
no IE7?!? So I am wondering what I am missing. here is the code
(in the head)
function addmenu() {
document.getElementById("test").innerHTML = "<p>PLEASE WORK!!!!</p>";
}
--------
(later in the body - text should apear in the span)
<span id="test"> </span>
<a href="#" onclick="javascript:addmenu()">Add Another Menu</a>