"<script type="text/javascript"> window.onload = function () { $('#" + YourLinkButton.Id + "').click(); } </script>"
"<script type="text/javascript"> window.onload = function () {
</script>"
Just wanted to know what I am doing wrong
When using quotation marks inside quotations marks, you need to change the type, between double ( " ) and single ( ' ) marks. Like in the example above. Also, don't forget to give a name to your button or you will not be able to reference it expressions or logic. At last but not least don't forget to change the escape Content property to No when using nested JavaScript in expressions.
Hi Johann,
When using quotes inside of quotes you need to use double quotes ("") so outsystems knows you aren't closing the quotes. You can also use ' instead.
Regards,
Marcelo
If you have picture in page and you want trigger when also picture is loaded, is this working?
In such case I tried to use JS window.onload, but it seems to fail sometimes.