Hi All,
I am developing an app wherer I am loading websites in iframe. & on mouseover on that site/iframe anywhere, it should give me the src of an element on which mouse over is done...
I am writing a jquery as,
//on HTML Mouse over
$(function() {
$("#main_frame").mouseover(function() {
prevElement = null;
curElement = window.event.srcElement.tagName;
window.status = curElement;
});
});
& HTML Part where the URL will be loaded is
<div id="netframe">
<iframe height="100%" width="100%" class="netframe" src="#" id="main_frame" name="content">
</iframe>
</div>
But thi sis not working, it gives a me src of only iframe, but not of its content site.
Please help.
Regards
Shweta