script(arg1) {
    /** Create new element */
    const script = new strapped.Script();
    
    /** Add to last container of indicated type */
    if ( typeof arg1 == 'string' && arg1.length > 0 )
      this.last(arg1).append(script);
    else
      this.last('Head').append(script);
    
    /** Allow for call chaining */
    return script;
  }
/**
   * Add new script to page.
   * @signature script() Add new script to last head
   * @signature script(string) Add new script to last container type indicated by (string)
   * @return This new script for call chaining
   */
Add new script to page.
@signature script() Add new script to last head
@signature script(string) Add new script to last container type indicated by (string)
@return This new script for call chaining
Add new script to page . @signature script () Add new script to last head @signature script ( string ) Add new script to last container type indicated by ( string ) @return This new script for call chaining
script(arg1) {
    const script = new strapped.Script();
    if ( typeof arg1 == 'string' && arg1.length > 0 )
      this.last(arg1).append(script);
    else
      this.last('Head').append(script);
    return script;
  }
script ( arg1 ) { const script = new strapped . Script ( ) ; if ( typeof arg1 == 'string' && arg1 . length > 0 ) this . last ( arg1 ) . append ( script ) ; else this . last ( 'Head' ) . append ( script ) ; return script ; }
Add new script to page.
Add new script to page .
/** Create new element */ /** Add to last container of indicated type */ /** Allow for call chaining */