<html> <head> <title>SVG</title> <script src="jquery.js"></script> <script type="text/javascript" src="q3.js"></script> </head> <body onload="paint()"> <p id="svg">IGF</p> </body> </html> function paint(){ var str; str="<svg><circle cx=\"170\" cy=\"180\" r=\"100\"/></svg>" $("#svg").html(str); }