[syntax="javascript"]function isNewDoc(){
url = window.location.toString().toLowerCase();
if (url.indexOf("openform") < 0) {
return false;
}
else {
return true;
}
}
function isDocBeingEdited(){
if (isNewDoc()) {
return true;
}
url = window.location.toString().toLowerCase();
if (url.indexOf("editdocument") < 0) {
return false;
}
else {
return true;
}
}[/syntax]
http://searchdomino.techtarget.com/tip/ ... 84,00.html
pas bête la méthode... il fallait juste y penser