[jQuery] Click event to load a new page

[jQuery] Click event to load a new page


I want to add a click function to an image to laod a new page
Tried this but it doesn't work
$("#i4").click(function(){
$(document).attr("href","index.php?
whichPage=slider&whichAct=0&subPage=mixnmingle");
});
The whichAct variable in the query string gets changed, which is why
it isn't just a static <a hef="...">...</a>
Any suggestions?
Thanks
Paul