Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

question about javascript

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 29th, 2008, 22:20
Up'n'Coming Member
Join Date: Aug 2007
Location: N.C.
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Jul 30th, 2008, 00:46
Aso's Avatar
Aso Aso is online now
Moderator
Join Date: Oct 2007
Location: UK
Posts: 1,536
Blog Entries: 2
Thanks: 19
Thanked 81 Times in 76 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8