I am trying to use JavaScript to create a KIOSK. It will display a page for a number of seconds and than another, w/o user interaction. I have come to the conclusion that this is not possible because the language lacks threads.

The following two Perl scripts crudely approximates the desired behavior. One stands up the page the other knocks it down. Can JavaScript do what I need or will I have to resort to using something like Java? Any guidance would be greatly appreciated.

#!/usr/bin/perl
use strict;
use warnings;
while( 1 == 1){
my $status = system('"C:\Program Files\Mozilla Firefox\firefox.exe" http://www.npr.org');
system('"C:\Program Files\Mozilla Firefox\firefox.exe" http://www.pbs.org');
}

#!/usr/bin/perl
use strict;
use warnings;
while( 1 == 1){
sleep(15);
my $status = system('taskkill /F /IM firefox.exe >nul 2>&1');
}