Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orion-dev] JavaScript editor: 'window' is not defined

Hi,

In my very first test of the code editor at orionhub.org, I entered this line ...

window.alert("hello!");

... and saved it as hello.js. I then got a red error icon to the left of this line saying "'window' is not defined." If I changed it to ...

alert("hello!");

... and saved it, I got "'alert' is not defined."

I don't think these lines should be flagged as errors. ;-)

/Jon


Back to the top