how to add url in onclick function????
        Posted  
        
            by rajesh
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by rajesh
        
        
        
        Published on 2010-04-24T06:38:56Z
        Indexed on 
            2010/04/24
            6:43 UTC
        
        
        Read the original article
        Hit count: 301
        
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...
© Stack Overflow or respective owner