posted 20 years ago
I have created the following example dialog box. It works fine except for one thing: alert("show(1) = "...) displays undefined. Why? Should I not be able to reference the global variable arguments inside the function show()? The init() method is invoked in the onload event. The alert("global = "...) and alert("show(2) = "...) display the value I expect. What am I overlooking?