scripts.js : removeDiv
This commit is contained in:
parent
3e437f6d79
commit
6d140ff76d
1 changed files with 7 additions and 0 deletions
|
|
@ -402,3 +402,10 @@ function add_div(obj) {
|
|||
bottom_div.appendChild(elt);
|
||||
} catch (e) { alert(e.message);}
|
||||
}
|
||||
/**
|
||||
* remove a object created with add_div
|
||||
* @param elt id of the elt
|
||||
*/
|
||||
function removeDiv(elt) {
|
||||
if (g(elt) ){ document.body.removeChild(g(elt)); }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue