Need Help With Javascript
|
01-27-2008, 03:37 PM,
Post: #1
|
|||
|
|||
Need Help With Javascript
I'm trying to teach myself javascript, and I don't understand how some of it works. For example, the code snippet below is from w3schools. It is a simple numerical clock/timer.
This may seem to be a stupid question (I feel stupid asking it ), but how does the script know where to acquire the correct time? :-[ Code: <html> |
|||
01-27-2008, 06:16 PM,
Post: #2
|
|||
|
|||
Re: Need Help With Javascript
It reads your computer's mind.
|
|||
01-27-2008, 07:36 PM,
Post: #3
|
|||
|
|||
Re: Need Help With Javascript
I knew it was a stupid question. Thanks, reg. :-[
Is that what the variable is telling it to do----------get the time from the pc viewing the page? Code: var today=new Date(); |
|||
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Adding A JavaScript Image Flip | mandy | 1 | 2,520 |
12-14-2008, 09:18 PM Last Post: BellisimaJ. |
|
SEO Tips for JavaScript Lightbox Content | mandy | 0 | 3,257 |
11-20-2008, 12:46 PM Last Post: mandy |
|
75 Useful Javascript Techniques | mandy | 0 | 2,179 |
09-14-2008, 07:52 AM Last Post: mandy |
|
Exploring JavaScript's language features | mandy | 0 | 2,695 |
12-20-2006, 12:00 PM Last Post: mandy |
|
Javascript security problems are an increasing risk for sites, users | regic | 0 | 2,655 |
07-30-2006, 01:28 PM Last Post: regic |
|
Taking HTML Further With Javascript | mandy | 0 | 2,691 |
01-24-2006, 09:16 AM Last Post: mandy |
|
Javascript Tutorial and Reference Resources | regic | 3 | 3,907 |
01-10-2006, 04:58 AM Last Post: misteroriginal |
Users browsing this thread: 1 Guest(s)