By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,298 Members | 797 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,298 IT Pros & Developers. It's quick & easy.

limiting the number of times a javascript code is running in a webpage

P: 5
I have some problem with controlling the number of times a javascript code is running my problem is like if we open a new browser page and open the same link again the javascript code runs once again.what i want is only 1 instance of the code running at any time on my,can u please help me with the above mentioned.
Aug 6 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Welcome to TSDN!

Use cookies (link). If a cookie is set, don't run the code, otherwise set a cookie and run the code.
Aug 6 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.