use document.location.href property to achieve this.
suppose u want to navigate to page example.html then u can do like this
hey thx..i figured it out..usin window.location="url"..it wrks the same way u say..
Though it works, it's an incorrect way of doing things.
location property of the
window object is an object, not a string. The location object in turn has an
href property of type string and hence
location.href = "url"; is the correct,
location = "url"; is not.