Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Wednesday, June 8, 2011
How to detect iframe src / URL change event by javascript?
By onload event in iframe:
<iframe
src
=
"http://www.google.com/"
onLoad
=
"
alert(
'Test'
);
"
></iframe>
<iframe
src
=
"/test.html"
onLoad
=
"
alert(
this
.contentWindow.location);
"
></iframe>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment