I have input type "URL" in my HTML file. How to write JavaScript to fetch image from user entered URL and load it using javascript
<div class="url-container">
<input type="url" class="form-control" placeholder="Insert image URL" id="image-url">
<button class="btn btn-default" type="submit" id="url_submit">
<i class="material-icons">cloud_download</i>
</button>
</div>
i want to load it here:
<img class="materialboxed" src="" id="image" style="">