PDA

View Full Version : URL Change



mrhomer
9 May 2012, 1:56 AM
I have an menu in ExtJs 4 and when clicked on one button I want to change the url on the page for example:

start url: http://something/index.html

after click: http://something/index.html/Grid

Can that be done with ExtJs 4 code?

Thanks.

Farish
9 May 2012, 4:40 AM
You can use the click event of the button:


button.on('click', function() {
window.location.href = "http://www.google.com";
});

of put the function as the handler for the button in its config.