Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by bernard on Dec 01, 2009 23:24
open dhtmlx forum
Click item in toolbar

Dear Support Team,

I want to ask related to tollbar. How the sample script if i want click the logout item in the toolbar and when i click it the page will refer to index.php again.
thanks for the example and your support

regard,
Bernard
Answer posted by Alex (support) on Dec 02, 2009 00:56

Hello,

you can try to use onClick event handler to execute the necessary action on button click:

toolbar.attachEvent("onClick", function(itemId){

    /*your code*/

});