How to make a table like in the photo?

  • 0
    It is necessary that when you click on the button, such a table climbs out, and the background of the page becomes gray
    JavaScript Anonymous, Mar 8, 2020

  • 2 Answers
  • 0
    This is not called a table, but a modal window. In the screenshot - default from bootstrap .

  • 0
    <script type="text/javascript">
    function ModalWindow() {
    var videolink = '';
    autoOpen: true,
    open: function(event, ui) {
    videolink = $(this).find("iframe").attr('src');
    show: 'fade',
    hide: 'fade',
    width: 'auto',
    modal: true,
    beforeClose: function(event, ui) {


    <a href="#" onclick="ModalWindow(); return false;">Смотреть онлайн</a>
    <div id="video-container" title="Смотреть кино" style="display:none; "><iframe src="" width="800" height="360" frameborder="0"></iframe></div>

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!