Jump to content

New to javascript


Liquid Fire

Recommended Posts

I right now have a very solid understand of PHP/MySQL/HTML.  I also have a good understanding of CSS and want to further my web development skill by picking up another language.  The best possible language i can find that i don't have a good understanding of is javascript, is there anything else i should learn?  If someone could point me to a site with good javascript tutorials or a good javascript book, that would be great.  I also have a question below:

 

I am make a form library in javascript to have stuff like focusing field, insert values on blur focus and stuff like that and my first function will just make the first field element on focus on page load(or whatever element you specific).  Here is the function:

 

function focus_field(form_name, field_name)

{

    document.form_name.field_name.focus();

}

 

my question is does javascript know that form_name is a variable and not the name of the form, and if so how.  If not how woudl i make a function like this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.