martedì, dicembre 18, 2007

SharePoint 2007: Obtain the Page Title or URL through JavaScript

<script language="javascript">

var Test = document.getElementById('ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle');

alert("Test of URL --> " + Test);

var Test2 = document.getElementById('ctl00_PlaceHolderSiteName_onetidProjectPropertyTitle').innerHTML;

alert("Test of Name--> " + Test2);

</script>