Popup image from text

If you are using bootstrap then you can try the code bellow:

<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Popup image</button>

<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-body">
            <img src="https://placehold.it/1000x600" class="img-responsive">
        </div>
    </div>
  </div>
</div>

tech