hello ,

I'm using AJAX to post comments without refreshing the page , and it works fine

but I just asking how to set the cursor in a specific place in the page , which contains the comment added , by javascript

what if I want the cursor to go to the table with the id 'new_comment'

I tried this but didn't work

HTML Code:
document.getElementById("new_comment").focus();


any idea

Thanks, Respect