H
Hvid Hat
Hi
I've got a list of paragraphs that when clicked are deleted from the DOM
with JavaScript. When I remove an element with removeChild the focus moves
to the top of the document. Why is that and how do I prevent it from happening.
I've set up this test page : http://hvidhat.users.whitehat.dk/ecmascript.html
If you click on paragraph 30 at the bottom, the paragraph is deleted and
focus moves to the top of the document. How can I prevent the focus moving
to the top? I want the focus to stay where the paragraph was deleted. I hope
it makes sense :-
I've got a list of paragraphs that when clicked are deleted from the DOM
with JavaScript. When I remove an element with removeChild the focus moves
to the top of the document. Why is that and how do I prevent it from happening.
I've set up this test page : http://hvidhat.users.whitehat.dk/ecmascript.html
If you click on paragraph 30 at the bottom, the paragraph is deleted and
focus moves to the top of the document. How can I prevent the focus moving
to the top? I want the focus to stay where the paragraph was deleted. I hope
it makes sense :-