MrAdam Posted November 11, 2006 Share Posted November 11, 2006 i used: var searchMenu = document.createElement("searchMenu"); searchMenu.id = 'searchMenu'; searchMenu.style.width = '200px'; searchMenu.style.height = '50px'; searchMenu.style.backgroundColor = '#eeeeee'; searchMenu.style.border = '1px solid #b8b8b8'; searchMenu.style.fontFamily = 'arial'; searchMenu.style.fontSize = '11px'; searchMenu.style.position = 'absolute'; searchMenu.style.top = top; searchMenu.style.left = left; searchMenu.style.padding = '10px'; searchMenu.innerHTML = 'link<br />' + 'link<br />' + 'link<br />'; document.body.appendChild(searchMenu); .. to create a little popup menu, but i want to remove it when i run another function. how do i do this?-thanks Link to comment Share on other sites More sharing options...
MrAdam Posted November 11, 2006 Author Share Posted November 11, 2006 oh wait, i've sorted it: function menuClose() { var menu = document.getElementById('searchMenu'); document.body.removeChild(menu);} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now