Launching Dialog() from INSIDE an iframe?

Launching Dialog() from INSIDE an iframe?

This is very hard to search for, since googling for it returns results with the iframe being used as the dialog...

I have a project that uses an iframe. From within it, it has a link to open a dialog. The dialog cant be opened inside the iframe, so it needs to open in the parent. I can't seem to get it to work. How can I target the parent window for .dialog() and do this cleanly? Thanks.