Hello,
if(name != "undefined" && name != "" && name != "null") location.href="./script.php?action=new_dir&name=" + name;
^ ^
Beachte den Unterschied zwischen einem String dessen Inhalt "null" ist und einem null-Zeiger.
MfG
Rouven
--
-------------------
There's no such thing as a free lunch -- Milton Friedman
-------------------
There's no such thing as a free lunch -- Milton Friedman