Results 1 to 2 of 2

Thread: JavaScript

  1. #1
    Join Date
    Dec 1969

    Default JavaScript

    Can we have any alternative method for global<BR>declaration of a variable.<BR> For window_onload I have some functions...<BR> So in that particular functions if Iam declaring<BR>a variable can it be treated as Global variables?<BR>And used througout the script?

  2. #2
    Join Date
    Dec 1969

    Default RE: JavaScript

    If you are using it one the one page then yeh just declare it in the &#060;scriot&#062; tags. I you want to use it over several pages you&#039ll have to either store it in a frame, save it as a cookie or pass it about in the URL ie http://mypage.html?yourvalue=2<BR><BR>Hope that helps<BR><BR>Pete

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts