Page 1 of 1

[javascript][chrome-extension] My variable wont pass

Posted: Wed Sep 24, 2014 10:49 am
by Isaac


On line 3 I have a variable called "link". I want to pass the variable over to the function on line 12. I tried passing it through the function on line 10, but it doesn't work.


edit:
never mind, I forgot that you have to define the variables outside of the function first to make it global.