Q:

Dynamic Web Part Title URL

I would like to change the Title URL field of a content editor based on javascript. 
I currently have a content editor that displays an Iframe of a document library. 
How can I make the title of the content editor change to a hyperlink using javascript? 
Using the below picture, I would like to click on "project documents" and have it take me to the document library shown.

A:

I accomplished this using jQuery:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script>
    $(document).ready(function(){
        var linkText = $(".ms-webpart-titleText").text();
        $(".ms-webpart-titleText").html("<a href='InsertURL'>" +linkText+ "</a>");
    });
</script>

You can place the script in a script editor above the content editor webpart.  

