how to add url in onclick function????
- by rajesh
i have line
new_element.innerHTML ="";
which will call the function addWidget as
function addWidget(url) {
alert(url);
var main= document.getElementById('mainwidget');
main.innerHTML = "";
}
but its not working whats the problem...