I am trying to add an iframe using jquery below, but when I click the link, nothing happens.
<head> <script type="text/javascript" src='//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js'></script> <script type="text/javascript"> function fun(){ $('<iframe />'); </script> </head> <body> <a href="#" onclick="fun()">clica</a> </body> </html>
source share