my code is
<a href="#" target="_blank" class="floatLeft" onclick="change('http://localhost/allwidgets/widgets.html');" >
function change(url)
{
alert(url);
document.getElementById("mainOuter").innerHTML=url;
}
Actually I want that url should go in innerHTML of mainOuter div and that page should display in that.
Please suggest….
Thanks
It sounds like you may actually want an iframe:
If you want to actually modify a DIV’s innerHTML, then you need to use a AJAX request to get the desired HTML, then use innerHTML. Libraries can make this easier.