I have a long list of nested divs. I am passing the ID of a particular element (actually a paragraph element) on the querystring and opening its div and parent onload. How
The easiest way to do this is by using Ariel Flesler's scrollTo plugin. I've used it a few times before and it is small, lightweight and works very well.
You could use the scrollIntoView function.
$(document).ready(function() {
$('#divN').get(0).scrollIntoView();
});
jQuery:
$(document).ready(function(){
$(document.body).scrollTop($('#divN').offset().top);
});