{"id":16371688,"url":"https://github.com/pbojinov/iframe-communication","last_synced_at":"2025-09-18T00:49:00.700Z","repository":{"id":14079773,"uuid":"16783446","full_name":"pbojinov/iframe-communication","owner":"pbojinov","description":"Basic two way iframe communication","archived":false,"fork":false,"pushed_at":"2014-03-12T08:45:09.000Z","size":172,"stargazers_count":90,"open_issues_count":1,"forks_count":41,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T16:02:36.018Z","etag":null,"topics":["communication","cross-domain","html5","iframe","javascript"],"latest_commit_sha":null,"homepage":"http://pbojinov.github.io/iframe-communication/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pbojinov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-12T21:58:22.000Z","updated_at":"2025-02-11T21:31:00.000Z","dependencies_parsed_at":"2022-07-11T06:31:14.022Z","dependency_job_id":null,"html_url":"https://github.com/pbojinov/iframe-communication","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pbojinov/iframe-communication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fiframe-communication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fiframe-communication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fiframe-communication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fiframe-communication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pbojinov","download_url":"https://codeload.github.com/pbojinov/iframe-communication/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pbojinov%2Fiframe-communication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275691165,"owners_count":25510500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["communication","cross-domain","html5","iframe","javascript"],"created_at":"2024-10-11T03:09:19.367Z","updated_at":"2025-09-18T00:49:00.617Z","avatar_url":"https://github.com/pbojinov.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Two way iframe communication\n\nSeamless communication between an iframe and a parent page.\n\n## Demo\n\n[http://pbojinov.github.io/iframe-communication](http://pbojinov.github.io/iframe-communication/)\n\nThe main difference between the code in the two pages (parent and iframe) is the method of sending messages. Recieving messages is done using the same code.\n\n### parent\n\nSend message to iframe using `iframeEl.contentWindow.postMessage`\n\nRecieve message using `window.addEventListener('message')`\n\n### iframe\n\nSend message to parent window using `window.parent.postMessage`\n\nRecieve message using `window.addEventListener('message')`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbojinov%2Fiframe-communication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpbojinov%2Fiframe-communication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpbojinov%2Fiframe-communication/lists"}