javascript - Target div in iframe -


i have link multiple effects happening,

a description appearing onmouseover of image, opening iframe, targeting # specific div description on iframed page.

and onclick div slide-toggling , opening iframe. (not important problem)

i'm sure there better ways way did went i'm familiar with. works except problem /descriptions#456. div targeting #456 appears on firefox after mouseout , mouse in, other times seems point blank part of iframe page. on chrome targets #456 div without mistakes. firefox works maybe 60% of time. here unnecessarily complicated code using.

<a id="slideup" class="description-div-name-1st-iframe-is-in" href="#"  onmouseover='document.getelementbyid("1stiframeid").src="example.com/descriptions#456";'  onclick='document.getelementbyid("2ndiframeid").src="http://www.example.com";'> 

as mentioned know there simpler way code doesn't bother me fact targeted div doesn't appear on firefox. i'm thinking maybe there more sure way target div other using url# method. thank you.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -