I am trying to implement features for SSO site to make it not so different from the old one.
'buttons' => array(
'account' => array(
'tags' => 'onClick="qa_edit_profile()"',
'label' => qa_html("Edit Profile") ,
) ,
) ,
As you can see, the onClick event will call the qa_edit_profile() function which I has written in qa-content\qa-page.js file:
function qa_edit_profile()
{
location.href = "www.yoursite.com";
}
But when I click, it doesn't work. While other function works like alert(),...
So the question is, is there any solution to make the browser redirect to an URL when click on a button?