The child frame will get a function from the parent frame, set the document.domain property and then try to use the function. The function should still be able to access parent frame properties.