Jump to content
MakeWebGames

iFrame and parent interaction question


gamble

Recommended Posts

I have an iFrame in a page, and i need to call a function that the main page has. I know about the parent.functionName(), but that isnt working for me. Keeps throwing out this error: Uncaught SecurityError: Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match.

Anyone know how to fix this, or get around it in some way?

I am doing this on my desktop with regular js and HTML files, not on a server or anything.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...