State =  script .embedded .get  (  )  
                           
Description :

This instruction returns TRUE if the script is being run from a HTML page.

Return Value :

  • TRUE
    FALSE

Notes :


This instruction can be very useful to select the size of a window:
if (script.embedded.get ()==TRUE)
%res_x=window.width.get ()
%res_y=window.height.get ()
endif ()

As shown here, if a script is embedded within a HTML page you can use the instructions window.width.get and window.height.get before performing a screen.resolution.set. This lets you know the exact size of the HTML window.

Examples :