Hey, really quick release from me.
When you want to post an article you'd see if image link is right or not, right?
So, use this code below:
Enjoy, cheers!
When you want to post an article you'd see if image link is right or not, right?
So, use this code below:
Code:
<label for="img">Image Link.</label>
<input type="text" id="img" class="form-control" placeholder="Image link.">
<a class="btn btn-primary btn-large" id="button"name="button">Preview Image</a>
<script type="text/javascript">
document.getElementById('button').onclick = function() {
var val = document.getElementById('img').value,
src = val ,
img = document.createElement('img');
img.src = src;
document.body.appendChild(img);
}
</script>