Put the following javascript in the Dispform.aspx and Editform.aspx:
function urlparm( name ){ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\< /a>]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1];}
onetidPageTitle.innerHTML=' <h2 class="ms-pagetitle">ID: '+urlparm("ID")+'</h2>';
No comments:
Post a Comment