Jump to content

Recommended Posts

Posted

Isto funciona no firefox

<a name='top'>link no topo</a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a name='middle'>link no meio</a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="#" onclick="location.href='#top';return(false);">top</a>
<a href="#" onclick="location.href='#middle';return(false);">meio</a>

Posted

Isto funciona no firefox

<a name='top'>link no topo</a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a name='middle'>link no meio</a>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<a href="#" onclick="location.href='#top';return(false);">top</a>
<a href="#" onclick="location.href='#middle';return(false);">meio</a>

Realmente deu numa página à parte mas quando vou por isso na minha iframe não faz nada...

Posted

Eu tenho na minha pagina:

<script language="Javascript">
<!--
function calcHeight()
{
 //find the height of the internal page
 var the_height=
document.getElementById('the_iframe').contentwindow.
  document.body.scrollHeight;

 //change the height of the iframe
 document.getElementById('the_iframe').height=
  the_height;
}
//-->
</script>



<iframe width="90%"  id="the_iframe" name="frame" onload="calcHeight();"   src="pagina.php" scrolling="NO" frameborder="0" ></iframe>

e depois dentro de pagina.php tenho o :

<a name='top'>link no topo</a>

<a href="#" onclick="location.href='#top';return(false);">top</a>

Ele não faz nada no firefox , alguém sabe o que estou a fazer de mal?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.