Can I modify my html code from Velo?

I have an html component with a code snipet (see below):

<html>
<head>
<meta charset="utf-8"/>
</head>
<body>
<script src="https://tp.media/content?*******whatever*******"> 
</script>
</body>
</html>

I wonder if I can change the src of the html from a page through an event (for instance, sending a new src from an input field and clicking a button), and then update the html component. Is it possible? How?

Notice that I do not need to change the .src property in the html compent itself, what I need it is to change the code.