www.webdeveloper.com
Results 1 to 2 of 2

Thread: this.value?

  1. #1
    Join Date
    Dec 2010
    Posts
    60

    this.value?

    I've seen multiple tutorials on javscript use this code "this.value" what the heck does "this." do? what is the profit of using it?

    Also, when figuring out something like collision detection, or an animation path array using javascript, what does parseInt() do when calling that function better then just called it normally?

  2. #2
    Join Date
    May 2006
    Location
    Somewhere behind your screen
    Posts
    1,648
    this means the current element of DOM (which is being clicked or 'current in a loop' or else)

    parseInt returns the numeral part of a string
    xxx: Guess Buddhist riddle: "What is the sound of one hand clapping?"
    yyy: facepalm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles