15
Views
1
Comments
add html to head
Question
Hi,
I have used the code below to add html to head, but it didn`t work. 
Please help to have a look on it, thanks a lot.
function addmenuie5(){    
    var ss = document.createElement('div');
    var scr = '<div id=ie5menu class=skin1 onMouseover=highlightie5() onMouseout=lowlightie5() onclick=handleARs()> <div id=dist class=menuitems></div> <div id=dupt class=menuitems></div> <div id=dupa class=menuitems>Duplicate all Opened ARs</div></div>';
    ss.innerHTML  = scr;
    var hh = document.getElementsByTagName('head')[0];
    hh.appendChild(ss);
}
2016-04-21 20-09-55
J.
 
MVP
what does developer tools of chrome says?
when do you call that function?
why use javascript in the first place?


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.