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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is value+

Status
Not open for further replies.

DataSpy

Technical User
Nov 15, 2002
39
US
Hello, I was just wondering what value+ does? Example (document.MyForm.one.value+".htm"). Any help is appreatied, thanx in advance.
 
(document.MyForm.one.value+".htm") gets the string inside the quotes in

<input type="text" value="your text value here">

and adds the characters ".htm" to it.

In technical terms, the plus sign concatentates the 2 strings into one.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top