How to insert URL parameter in DIV?

Posted by rajesh on Stack Overflow See other posts from Stack Overflow or by rajesh
Published on 2010-06-14T05:47:00Z Indexed on 2010/06/14 5:52 UTC
Read the original article Hit count: 204

Filed under:
|

Hi, 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

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html