Results 1 to 2 of 2

Thread: URL Change

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    27

    Default URL Change

    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.

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,102
    Answers
    113

    Default

    You can use the click event of the button:

    Code:
    button.on('click', function() {
      window.location.href = "http://www.google.com";
    });
    of put the function as the handler for the button in its config.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •