How to have a href for an Ext.Button?

  • How can I have an Ext.Button with a href? There is no property href. I need a mailto link on the button.

    MenuItem does have a href, but does not look like a button.


  • ...this works, but is not a real href.
    Which means open link in new tab/window, bookmarking, copy url etc won't work.

    This changes the browsers location to a new url, I fail to see how bookmarking that url, etc won't work?


  • handler: function() {
    document.location = "mailto:blah@somewhere.com"
    }


  • Sometimes things are so easy, you don't see them :) thanks.


  • Ahh, I never use that functionality so it doesn't cross my mind much. you are definitely correct in that they wont work with this method though :-P


  • This changes the browsers location to a new url, I fail to see how bookmarking that url, etc won't work?

    I was talking about dragging a link to bookmarks-toolbar, or right click and add link as bookmark. Both not a big deal.

    But not being able to middle-click a link is a pity.


  • ...this works, but is not a real href.
    Which means open link in new tab/window, bookmarking, copy url etc won't work.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about How to have a href for an Ext.Button? , Please add it free.