To be a little more descriptive of what I'm trying to accomplish:
I'd like to modify the output of wp_list_pages to include a javascript onclick command on the <li> but I can't seem to get the unique url for each <a> that wp_list_pages is generating.
essentially, it should look like this:
<li class="page_item current_page_item" onclick="location.href=' the page url';" style="cursor:pointer;"><a href=" the page url">The page</a>
I've tried to use get_page_link($page->ID), but it returns the same post url for each instance (rather than a page url).
As such, I've turned to modifying the start_el entry in classes.php, but I'd rather not make this modification each time I install WP or update it. Is there a way to override the start_el function local to the template? Am I thinking about this the wrong way?
Any ideas?