Calling one parameter in another function?
<p>Hi
Actually i want to take url and id from one fn to another whether this method will work.</p>

<pre><code>function addElement(url, id) {
    alert(url);
    var main = document.getElementById('mainwidget');
    main.innerHTML = "&lt;iframe src=" + url + " align='left' height='1060px' width='576px' scrolling='no'  frameborder='0' id='lodex'&gt;&lt;/iframe&gt;";
    alert("google");
    addUrl(url, id);
}
function add() {
    addUrl(url, id)
    alert("id" + id);
    document.getElementById("Listsample").innerHTML = "&lt;a href='#' onclick='addUrl(" + url + ");' id='cricket' tabindex='1' name='cricket'&gt;" + id + "&lt;/a&gt;";
}
</code></pre>
