Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

Baigudin Software registers the copyright of its own operating system – Embedded Object Operating System

The Russian Federal Service for Intellectual Property (Rospatent) registers the copyright of Embedded Object Operating System – Baigudin Software’s own embedded object-oriented real-time operating system.

Class «DomBuilder\Element\Script»

script – embedded script.

The script element enables dynamic script and data blocks to be included in documents.

All implemented interfaces:

Object Builder Property Attribute Traverse Fetch Search Tester

public Script javascript(string $src=NULL);

Sets this element as 'text/javascript' type.

Parameters:
string $src — a value of 'src' attribute.

Returns:
Script — this element.

public Script program(string $code);

Sets a program source code.

Parameters:
string $code — program source code.

Returns:
Script — this element.

Back to class list