[thelist] JavaScript pointers

Matt Warden mwarden at gmail.com
Tue Jul 6 15:19:20 CDT 2004

On Tue, 6 Jul 2004 13:35:28 +0200, Andreas Wahlin
<andreas.wahlin at ufl.gu.se> wrote:
> I know javascript has pointers, but is there no way to force it to use
> pointers in declarations?
> I want to use window.onload as an argument to a function, but I just get
> a call by value, not by reference.


I doubt it's possible. References in javascript are limited.

A quick google turned up this:


However, you might be able to do what you want with the Function() constructor:


But I don't know how well browsers support such things.


Matt Warden
Berry Neuroscience Lab
Department of Psychology
Miami University

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list