Advertisement
yashargh

Untitled

Feb 5th, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Here is the image: <span id="target"></span>
  2.  
  3. <script type="text/javascript">
  4. var a = '<a href="http://example';
  5. var b = '.com"><img src="http://example.com/image.jpg" /></a>';
  6.  
  7.  
  8. document.getElementById('target').innerHTML += a + b;
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement