I have this index page with an iframe on it. In the iframe I have some links like:
<a href="home.html" target="content">Who we are</a>
When I click on this link I would like to perform a jQuery action like sliding a div on the index page with this code.
$(window).load(function () {
$(".link_in_Iframe").click(function(){
$('.sliding_div_on_index_page').animate({'top': '-190px'}, 1000);
});
I know it is not possible to add/bind a click function to an iframe itself but could this be made possible with a link inside the iframe?
I managed the get the script working by replacing the click function by a hover function so basicly it works fine but I need to do this with a click function.