I have a <div id="floorplan"></div>
Im using wordpress so in the javascript panel on clicking a button i have added the code 
var code = "[insert_php] echo do_shortcode('[flat9]'); [/insert_php]";
        document.getElementById("floorplan").innerHTML = "PHP"+code;
but the whole "[insert_php] echo do_shortcode('[flat9]'); [/insert_php]" is printing without executing
i tried using this [insert_php], because if i use  tags while printing result will be like "<!--?php echo do_shortcode('[flat9]'); --?> ,it will get commented because of this " innerHTML ".
I need to print the short code in such a way, a real help on this would be appreciated.
 
     
     
    