Is there a way to get an image from web (for example Google Search page), right click - Copy image address
- and then paste the copied source as src
for another image?
Something like:
$('button').on('click', function(){
$('.imga').attr('src', 'src_from_clipboard');
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<img class='imga' src='whatever.jpg' alt='img'>
<br><br>
<button>CLICK</button>