Thanks Yury,
I was able to add
element.target = "_blank";
element.className = "iframe";
My purpose is to integrate the ColorBox jQuery Plugin (
http://www.jacklmoore.com/colorbox/) in order to open external pdf link in a rich overlayer.
So:
- I modified the rendering of external pdf link with class=iframe and target=_blank through annotation.js
- I inserted in the head of viewer.html
<script type="text/javascript" src="
https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="
http://www.jacklmoore.com/colorbox/jquery.colorbox.js"></script>
- I inserted in viewer.html before </body>
<script>
jQuery("a.iframe").colorbox({iframe:true, width:"50%", height:"60%"});
</script>
But it doesn't work, the external link is opened just like a simple link in a new window (due to target=_blank)
Any suggestion?
Thanks again for you work, is very impressive.