Solution:
The fastest solution is to create a jQuery function for the click on the button.
jQuery(document).ready(function(){
console.log('test'); jQuery('#idTab').click(function(){
console.log('test');
$("#iframe").attr("src", function(index, attr){
return attr;
});
});
});
You find a demo hereĀ https://codepen.io/dextlore/pen/JjKvaGM