Typically XSS attacks work by injecting <script/>
tags, but it’s also possible to inject JavaScript using the <iframe/>
and <img/>
tags by setting the src
attribute to the javacript:
pseudo-protocol. For example:
Note, however, that JavaScript loaded in an <iframe/>
won’t have access to the parent page’s DOM.