Thread
:
what is this here ?
View Single Post
11-11-2012, 09:36 PM
PM User
|
#
2
felgall
Master Coder
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,528
Thanks: 0
Thanked 503 Times in 494 Posts
this
in that code should refer to the div that you created four lines earlier. So this.title will refer to the arr[1] value that you assigned to it three lines earlier but which will no longer be directly accessible when the onclick code runs.
__________________
Stephen
Learn Modern JavaScript -
http://javascriptexample.net/
Helping others to solve their computer problem at
http://www.felgall.com/
felgall
View Public Profile
Visit felgall's homepage!
Find More Posts by felgall