I have a html button with a javascript to go to another page, but somehow the script doesn't work. Probably because I'm doing it wrong. Please correct me .
this.onclick = function(event)
{
location.href = 'http://www.google.com';
}
I should perhaps clarify that the button is generated by Birt Designer Pro. Its code is almost inaccessible, but this is from the xml:
<extended-item extensionName="HTMLButton" name="NewHTML Button" id="32"> <expression name="text" type="constant">klik</expression> </extended-item>