This is a discussion on "question about javascript" within the Web Page Design section. This forum, and the thread "question about javascript are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
question about javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
question about javascript
Can the function of a script be anything you want it to be...
you just have to "call" it by that name? Reason, I have created a site with a popup js. I want to incorporate some components of another js popup script, but it has another function name. Can I just add the components and keep my function name? I hope this is not too confusing. I am sort of new to scripts. |
|
#2
|
||||
|
||||
|
Re: question about javascript
Yup, you can name a function (almost*) anything you want
* As with all languages, JS has a set of reserved keywords, such as 'new', 'break' and 'continue' that you must not use (see full list)
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| javascript in php | iochinome | PHP Forum | 2 | Feb 13th, 2008 22:30 |
| Javascript | dharvesh | JavaScript Forum | 4 | Oct 21st, 2007 02:28 |
| Javascript Question | russb | JavaScript Forum | 1 | Jul 22nd, 2007 02:42 |
| Javascript problem/question | kb3llm129 | JavaScript Forum | 0 | May 6th, 2006 23:03 |