Can you expose interfaces for external access?

How do I expose an interface for external access?How does IFRAME communication work?Is there a document