OK to make it more clear the html which it should return when the text is selected and okeyed is as follows.[html]pastevalue = '' + '<' +'\s'+'p'+'a'+'n' + '>' + document.frmHyperlinks.text2.value + '<' + '/' +'\s'+'p'+'a'+'n' + '>' +'';[/html]I can never get the span tag to parse into html, i can parse something like but definately not . How can i get there?Thank You