I have a iframe url that I would like to change based on what the user inputs into the text field. So I have:
<iframe
src="http://player.twitch.tv/?channel={CHANNEL}"
height="720"
width="1280"
frameborder="0"
scrolling="no"
allowfullscreen="true">
</iframe>
I would like to change {CHANNEL} to be what the user inputs into a text field and submits via button. For example, if the user inputs "TestName" into the text field the new iframe URL would become src="http://player.twitch.tv/?channel=TestName"
Not sure how to do this.