Get the current documents frame name

Dear,

I want to know the current documents frame name in the CLIENT!

I tried already thing like

window.self.name;

and

for (n = 1; n < top.length; n++) {

alert(top.frames[n].name)

}

Which always returns an empty string.

In the designer I can see that the HTML section name is not available and never filled in. Therefore I used the title field for HTML (where I filled in the frame name)

this returns the ‘undefined’ statement.

If someone knows how to get the current document frame name, please let me know how!

Thanks