Guest_imported
New member
- Jan 1, 1970
- 0
Hello there,
I'm trying to create an sorted array with the installed plugins. I can't get the sort function to work. Here's the code I'm using:
if (navigator.plugins.length)
{
var num_of_plugins = navigator.plugins.length;
var win = window.open( "" , "Plugins" , "width=400, height=350, resizable=yes, scollbars=yes"
;
if (num_of_plugins > 0)
{
for (var i=0; i < num_of_plugins; i++)
{
var list_number=i+1;
win.document.write(list_number + " - <B>"+navigator.plugins.name+"</B> (" + navigator.plugins.filename + "
<BR>"
;
}
}
}
else
{
win.document.write("<B>No Plug-ins found!</B>"
;
}
How can I sort this array?
Thanks in advance!
Grtx,
Phoenix
I'm trying to create an sorted array with the installed plugins. I can't get the sort function to work. Here's the code I'm using:
if (navigator.plugins.length)
{
var num_of_plugins = navigator.plugins.length;
var win = window.open( "" , "Plugins" , "width=400, height=350, resizable=yes, scollbars=yes"
if (num_of_plugins > 0)
{
for (var i=0; i < num_of_plugins; i++)
{
var list_number=i+1;
win.document.write(list_number + " - <B>"+navigator.plugins.name+"</B> (" + navigator.plugins.filename + "
}
}
}
else
{
win.document.write("<B>No Plug-ins found!</B>"
}
How can I sort this array?
Thanks in advance!
Grtx,
Phoenix