call function from content.js in google chrome extention
===

I have the follwing code in the content.js of google chrome extension
jQuery(document).ready(function () {
    
        jQuery("body").html('<input type="button" id="soso" value="asd" onclick="goFrame()" />');
        
    
    });
    
    function goFrame()
    {
        alert('Value');
    }

the button created successfully but when I click on it the message doesnt appear and I got the follwing error in the google chrome console 

> Uncaught ReferenceError: goFrame is not defined