body =~ s##-- your javascript here --- $1 = the time to wait $2 = the url#gs; body =~ s##-- your javascript here --- $1 = the time to wait $2 = the url#gs;