Hacker News new | ask | show | jobs
by gcb0 4778 days ago
How exactly do you use javascript cross domain like that? i'd love to know.
1 comments

You don't. You register a key press event listener on the main page and when the user types into the iframe, you can catch the strokes.

Example: http://www.jayssite.com/misc/iframesample.html (not my site, I googled it)

i don't think this example is cross-domain...