Html scripting with iframe

Asked

Viewed 104 times

1

I have an application that serves with a HELP for the system, that is, the user clicks on the question mark and instantaneously opens a new tab with this HELP directly on the equivalent page, but as this has its paths treated with iframe/JavaScript the path is incomplete and thus opens only the HELP homepage and not the specific page.

How I pass a path to a hrefwho is being treated by JavaScript where he returns a div with iframe?

Example (JS):

<script type="text/javascript">
function clickLink(link){
    document.getElementById("iframeTeste").src =  link;
}
</script>

Example (Html):

<li>
    <a href="#" onclick="clickLink('CaixaSeparacao.html')">Caixa Separação</a>
</li>


<div id="teste" >
    <iframe id="iframeTeste" style="position: absolute; border: 0;    margin-top: 72px;    width: 100%;    height: 80%;    z-index:-1;">
    </iframe>
</div>

Here’s the HELP call you should open on the specific page on .NET:

<div class="imagem">
    <a href="../PCI.HELP/index.html" target="_blank">
        <img src="../PCI.HELP/helpmenor.png"/>
    </a>
</div>
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.