popup with object type="application/pdf": how to turn links inside the pdf to open in a new window or tab

  • Hello,
    I am using the following code inside the tour.html
    <action name="popup" scope="private:POPUP" args="type, content, width, height, scrollbars"><![CDATA[
    ...
    if ( ...

    ,type == 'object',
    calc(popup.datacontent, '<object style="position:absolute;width:100%;height:100%;top:0px;left:0px;" data="'+content+'" type="application/pdf"><a href="'+content+'">PDF Loading</a></object>');
    calc(popup.onloaded, 'add_html_code(get(datacontent),'+scrollbars+');');
    The pdf is shown in the popup window, but the links in the pdf open in the same tab (_top), so that the krpano application disappears.
    Is it possible the change this default behaviour to target _blank?
    With kind regards

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!