How to create an iframe on clicking a link?

前端 未结 4 1959
一个人的身影
一个人的身影 2021-01-17 06:35

I have a web page with several links inside a table. One of the links is inside a td tag . I want a way to invoke an iframe, which will be opened once the user clicks on the

4条回答
  •  隐瞒了意图╮
    2021-01-17 07:20

    Have you heard about colorbox with property iframe:true??

     

    Outside Webpage (Iframe)

    Example Code From

     $(document).ready(function(){
                //Examples of how to assign the ColorBox event to elements
                $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
            });
    

提交回复
热议问题