Help for this page

Select Code to Download


  1. or download this
    /* OK */
    popURL('blah.com');
    /* Invalid */
    popURL('broken.com/
    cant/have/embedded/real/newline');
    
  2. or download this
    # before inserting a perl string into a quoted javascript
    # widget we always need to do at least this:
    ...
    
    # escape single quote chars - another gotcha
    my $embed_string =~ s/'/\\'/g;