iFrame access denied remote domain - by JQman How do i send a JavaScript function to an iframe with external content loaded, eg onclick="getElementByID('myiframe').src='fun();'" is there a way with ajax, i think XMLHttpRequest can help me. Read the article