This is the html code
I have included the fancybox in the script tag .
and here is the Jquery Code
Now let me explain what i am trying to do . First of all i am using the fancyBox plug-in , what it is suppose to do is stop the page from redirecting to a new page when the user clicks on the link which contains the pdf file .
but the page still redirects . why ? what am i not doing here ?
Thank you .
regards .
Gautam
Code:
<div class="col-md-4 col-md-offset-1" > <h2>menu card</h2> <a class="fancybox" href="menu.pdf" target="blank"><img src="images/menu-front-icon.png"></a> <p></p> </div>
Code:
<script src="fancybox/jquery.fancybox-1.3.4.min.js"></script>
Code:
<script type="text/javascript"> $(document).ready(function() { $('.fancybox').fancybox({ openEffect : 'none', closeEffect : 'none', }); }); // end ready </script>
but the page still redirects . why ? what am i not doing here ?
Thank you .
regards .
Gautam
Comment