Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6217669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:28:00+00:00 2026-05-24T07:28:00+00:00

i have a html page with 2 embed pages <body> <embed src =toolbar.html type=application/xhtml+xml

  • 0

i have a html page with 2 embed pages

<body>
    <embed src ="toolbar.html" type="application/xhtml+xml"  width="485px" height="60px">
    <embed src="editor.svg" type="image/svg+xml" width="595px" height="842px">
</body>

the first is a toolbar (jquery ui)
the second is an xml page with svg in it.
both pages have scripts.
Is there any way to pass a variable defined in a script from the toolbar to the svg ?

or if that isn’t possible:

is there any way to pass a variable defined in the current document to an embedded page ?

tnx in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:28:01+00:00Added an answer on May 24, 2026 at 7:28 am
    1. Turn the embed elements into iframe elements, don’t forget the close tags.

      The W3 – Technical Review – HTML 5 – The embed element mentions

      The embed element represents an integration point for an external (typically non-HTML) application or interactive content.

      so you should rather use iframe elements instead of embed elements, which mentions:

      The iframe element represents a nested browsing context.

      in which a browsing context is defined as:

      A browsing context is an environment in which Document objects are presented to the user.

    2. You can declaring a global variable in a script you use in the main page.

      It is as simple as var myvariable;

    3. You can access the variable from within an iframe using window.parent.myvariable.

      The DOM object window.parent is defined as such:

      Returns a reference to the parent of the current window or subframe.

      If a window does not have a parent, its parent property is a reference to itself.

      When a window is loaded in an <iframe>, <object>, or <frame>, its parent is the window with the element embedding the window.

      A shortened version is to use parent.myvariable, as window is the root DOM object.

    4. Make sure that the domains, protocols and ports of the different documents match.

      Unless you want to be presented with a nasty error like:

      Unsafe JavaScript attempt to access frame with URL X from frame with URL Y.
      Domains, protocols and ports must match.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML page (it's out of an internal address book application) and
I have HTML page where windows media player is embedded. It works very well
I have HTML page with some HTML element with ID=logo . I need to
How to find all files in directory? I have HTML page in some directory.
I have an HTML page (say welcome.html) which contains an iframe to a page
I have a HTML page that scrolls up and down (not a lot, but
I have a HTML page with which I want to do some client side
We have an HTML page which displays a bunch of pretty bars using divs
I have a HTML page, with html-mode enabled. I call function sgml-validate to check
I have an HTML page that uses AJAX to retrieve messages from a server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.