Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the format Name#Password
Comment
[i]Italic Text[/i]
[b]Bold Text[/b]
[spoiler]Spoiler Text[/spoiler]
>Highlight/Quote Text
[pre]Preformatted & Monospace Text[/pre]
[super]Superset Text[/super]
[sub]Subset Text[/sub]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


New to js

Reply
- Sun, 02 Oct 2016 16:36:03 EST OijTI/50 No.36220
File: 1475440563324.png -(23416B / 22.87KB, 909x505) Thumbnail displayed, click image for full size. New to js
Hey /prog/

Can you help me out? I don't understand why this global variable won't change.
I want the user to change it through a pop up window, but when calling it in the main window, it says undefined.
>>
Sophie Gunkinbury - Sun, 02 Oct 2016 17:21:05 EST WLOo3E7i No.36221 Reply
>>36220
I think it is because it is a different window it is just creating a new global variable called TEST.

Try window.opener.TEST = 5; instead
>>
Polly Worthingford - Sun, 02 Oct 2016 18:38:20 EST xLz8+Ihk No.36223 Reply
>>36220
Don't use global variable my man, that's some 90s shit.
It's ok if you are testing/learning, but it's considered very bad form these days.
>>
BrU - Sun, 27 Nov 2016 15:08:43 EST OEFE9/xF No.36330 Reply
//Try declaring the variable like this.
var TEST=0;

Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.