Best way to call javascript function like "window.open ()" in Smart Mobile Studio

I appreciate SMS and really enjoy the experience. I need to open a new window / tab in the browser using window.open (). It works for me using an asm block, but I can't help but feel that there is a better way that I am not aware of. So, is there a way to send SMS like this?

  asm
    window.open('MyPDF.pdf');
  end;

      

Many thanks. Sincerely, Will.

+3


source to share


1 answer


Traditionally, this was the only way, but in recent releases of Smart, you can also use the insertion point BrowserAPI

.



uses SmartCL.System;

BrowserAPI.Window.open('MyPDF.pdf');

      

0


source







All Articles