Say I have a webpage like this
<html>
    <head>
        <script>
        function getData() {
            return 1
        }
        </script>
    <!head>
    <body>
        <p>Hello!</p>
    <!body>
<!html>
and for some reason I want to call getData() from a chrome extension and get the result from the function, how would I do that?
 
    