function nou_element_html(contenedor, tipo, clase, id) {
var elemento = document.createElement(tipo);
if (typeof clase != 'undefined') {
element.className = clase;
}
if (typeof id != 'undefined') {
element.id = id;
}
contenedor.appendChild(elemento);
return element;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.