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

  • SEARCH
  • Home
  • 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 8057759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:08:23+00:00 2026-06-05T09:08:23+00:00

I got different javascript-Files and a website with frames. In generalJavascript.js I wrote this

  • 0

I got different javascript-Files and a website with frames. In generalJavascript.js I wrote this

console.log("BP0 - generalJavaScript.js eingebungen;");
top.window.clickedNewForm = false; 
function setClickedNewForm(booleanobj){
    console.log("BP5 - setClickedNewForm(); top.window.clickedNewForm: " + top.window.clickedNewForm + ";");
    top.window.clickedNewForm = booleanobj;
    console.log("BP6 - top.window.clickedNewForm: " + top.window.clickedNewForm + ";");
}
function getClickedNewForm(){
    console.log("BP7 - getClickedNewForm();");
    return top.window.clickedNewForm;
}

In Firefox-Console I can see messages like this:

Permission denied to access property 'clickedNewForm'
generalJavaScript.js()genera...ript.js (Zeile 11)
[Bei diesem Fehler anhalten]    
top.window.clickedNewForm = false;

What is wrong ? I thought if I declared a global var on top-object it will be accessable from all frames?!

UPDATE: tried to use parent.myvar instead of top.window, unfortunately nothing changed, FF-Console:

BP0 - generalJavaScript.js eingebungen;
genera...ript.js (Zeile 10)
Permission denied to access property 'clickedNewForm'
generalJavaScript.js()genera...ript.js (Zeile 12)
[Bei diesem Fehler anhalten]    
parent.clickedNewForm = false;
  • 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-06-05T09:08:25+00:00Added an answer on June 5, 2026 at 9:08 am

    You need to use the parent object to access value’s from a parent frame.

    console.log("BP0 - generalJavaScript.js eingebungen;");
    parent.clickedNewForm = false; 
    function setClickedNewForm(booleanobj){
        console.log("BP5 - setClickedNewForm(); parent.clickedNewForm: " + parent.clickedNewForm + ";");
        parent.clickedNewForm = booleanobj;
        console.log("BP6 - parent.clickedNewForm: " + parent.clickedNewForm + ";");
    }
    function getClickedNewForm(){
        console.log("BP7 - getClickedNewForm();");
        return parent.clickedNewForm;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am here as a developer of a website. My website got different modules
Regarding this question I had research lot and got the different suggestion, but non
i've got a problem with javascript on a website i'm creating, it's only html
I got this example demonstrating AJAX from Stoyan Stefanovs Object Oriented JavaScript at page
In this demo , i got different outputs, if i use (no wrap) or
In a certain view I have got different elements and I need the keyboard
i've 2 tables. In table_1 i've got different tasks that is updated every day.
So I've got 3 different columns (basket 1, 2, and 3). Sometimes these columns
I've got three different apps, all in GWT, none using Spring. Today, all of
I've got some performance issues in my Excel Workbook. I've got 2 different worksheets:

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.