Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why is the word [edit] added to my write ?

Status
Not open for further replies.

leegold2

Technical User
Oct 10, 2004
116
0
0
Hi,

I'm just starting out learning JavaScript OOP and have simple
question. I use:

document.write("Make = " + this.make + "<br>");

and at the end of the output in my browser I get the word: "[edit]"

Were does "[edit]" come from. I'm not printing it out but it's getting
added to my output somehow. Help appreciated.
 
We need to now what context this is running in. What "this" is referring to.

All we can tell from your code is that you are trying to output the value of the "make" property of whatever object "this" is referencing.

Why you get "[edit]" might be related to whatever is inside the "make" property.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
I'm sorry I didn't see the word "[edit]" in my code. Please disregard my question. I don't know how I missed it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top