+ 1
My field src is not display in browser. I use function setLink. And event listener. Thanks you sir.
field src https is not display. https://code.sololearn.com/W2C6Ahv48sAg/?ref=app
1 Answer
+ 2
Use:
HTML:
---------------------------------------------------
<input id='textbox1'>
<img id='img1' src="https://mimo.app/i/clock-tower-night.png">
---------------------------------------------------
Javascript Onclick():
---------------------------------------------------
document.getElementById('img1').src=document.getElementById('textbox1').text
---------------------------------------------------
Hope It Helped You :)