Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

zengguang

macrumors newbie
Original poster
Oct 18, 2007
3
0
hello everyone:
i want to move cursor to the end of text.But when i use the createTextRange(),i find it does not work.please help me how to move cursor to the end of text in safari by javascript.
 

bbarnhart

macrumors 6502a
Jan 16, 2002
824
1
I'm not sure what you're asking to do. Are you asking how to select a range of text in JavaScript? Any additional information would be helpful.
 

zengguang

macrumors newbie
Original poster
Oct 18, 2007
3
0
Yes,I want to position the caret at the end of a text string.the text is a "<input type='text'.." .
And ,I am trying to make some IE-only JScript work on Firefox and Safari.
Does anyone know of equivalent methods for these functions?
document.selection.createRange()
document.body.createTextRange()
please help me ,I use safari 3.0.3.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.