Is there a way to change the content in iframe in different primary domain?

JavaScript can pass messages between different domains provided that both domains have the necessary JavaScript set up to send and/or listen for messages.