I have html as follows:

<input type="file" name="p_pict" />
<input type="button" value="Upload" onclick="p_Upload()"/>

With the Browse button I get a full file pathname including backslashes.

The javascript is:

function p_Upload()
{
    alert(document.forms[0].p_pict.value);
}

The alert displays only the file name. Everything up to the last backslash is removed.

Why????