<script language=
"javascript"
type=
"text/javascript"
>
_spBodyOnLoadFunctionNames.push(
"showID"
);
function
showID()
{
var
querystring = location.search.substring(1, location.search.length);
ids = querystring.split(
"&"
)[0];
id = ids.split(
"="
)[1];
Td1 = document.createElement(
"td"
Td1.className =
"ms-formlabel"
;
Td1.innerHTML =
"<h3 class ='ms-standardheader'>ID</h3>"
Td2 = document.createElement(
Td2.className =
"ms-formbody"
Td2.innerHTML = id;
Tr1 = document.createElement(
"tr"
Tr1.appendChild(Td1);
Tr1.appendChild(Td2);
Location = GetSelectedElement(document.getElementById(
"idAttachmentsRow"
),
"TABLE"
).getElementsByTagName(
"TBODY"
Location.insertBefore(Tr1,Location.firstChild);
}
</script>
Richard Mueller edited Revision 6. Comment: Changed tag "SPS 2010" to "SharePoint 2010"
Richard Mueller edited Revision 4. Comment: Replace RGB values with color names in HTML to restore colors
Richard Mueller edited Revision 3. Comment: Removed (en-US) from title, added en-US tag
Craig Lussier edited Revision 2. Comment: added en-US to tags and title
Ed Price - MSFT edited Revision 1. Comment: Updated title casing and "SharePoint" casing/spelling. Great article!
It works like a charm with SP 2010 and 2013, thanks!!!