I have the categories on the right, and when you click plus it unhides a div with all the posts in that section
here's the code
Code:
function toggle(id) {
var state = document.getElementById(id).style.display;
if (state == 'block') {
document.getElementById(id).style.display = 'none';
document.getElementById(id+'toggle').innerHTML = '[+]';
} else {
document.getElementById(id).style.display = 'block';
document.getElementById(id+'toggle').innerHTML = '[-]';
}
}
its very basic since I don't know much, but was wondering why when you click a plus sign the browser jumps(scrolls) to the top of the page
any quick fixes?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
__________________
Chris. ->> Please login or register to view this content. Registration is FREE <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
« Reply to jumps to top of page when javascript is used