Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] global variables in frames
- From: javascript@xxxxxxxxxx (Peter-Paul Koch)
- Subject: [Javascript] global variables in frames
- Date: Wed, 27 Nov 2002 13:46:10 +0000
>I have a window with 3 frames. >I want to access a global variable "xyz" from all the >frame and I want to change the value from any frame. > >How do I define this variable? Define it in the frameset page: <script etc.> var xyz = '123'; </script> and from each frame call top.xyz: alert(top.xyz) // gives '123' -------------------------------------------------- ppk, freelance web developer Interaction, copywriting, JavaScript, integration http://www.xs4all.nl/~ppk/ Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/ New: Interview by Carole Guevin: http://netdiver.net/interviews/peterpaulkoch.php -------------------------------------------------- _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
- Prev by Date: [Javascript] global variables in frames
- Next by Date: [Javascript] global variables in frames
- Previous by thread: [Javascript] global variables in frames
- Next by thread: [Javascript] global variables in frames
- Index(es):