there is two way:   1:   $ ( "a.interested" ). fancybox ({                  'width' :  400 ,                  'height' :  400 ,                  'enableEscapeButton'  :  false ,                  'overlayShow'  :  true ,                  'overlayOpacity'  :  0 ,                  'hideOnOverlayClick'  :  false ,                  'type' :  'iframe' ,                  'href' :  "/components/profile/buyer/regbuyer1.php"  //or any other url that contains the contents of that iframe              });     2:     $ ( "a.interested" ). click ( function (){       $ . ajax :  {          type     :  "POST" ...