Return: PEAR_Error on error or the processed string.
Parameters:
string
$assign
—
the JS var to assign the window to
string
$file
—
the file that will appear in the new window
string
$title
—
the title of the new window
int
$width
—
the width of the window
int
$height
—
the height of the window
mixed
$attr
—
an array containing the attributes for the new window, each cell can contain either the ints 1/0 or the strings 'yes'/'no'. The order of attributes: resizable, scrollbars, menubar, toolbar, status, location. Can be also a boolean, and then all the attributes are set to yes or no, according to the boolean value.
int
$top
—
the distance from the top, in pixels (only used if attr=false|true).
int
$left
—
the distance from the left, in pixels (only used if attr=false|true).
Return: a PEAR_Error if a script has been already started or a string (HTML tag <script>)
Access: public
Parameters:
bool
$defer
—
whether to wait for the whole page to load before starting the script or no. Use defer only with script that does not change the document (i.e. alert does not change it).