SharePoint 2013 add new webpart page
Add New page
Try to edit the page..
Try to edit the page..
Message: this page cannot be edited in sharepoint designer. you can edit the content in the browser
To solve above messgae..
Click on pages.Right Click on page which you want to edit.
Select : Detach from page layout
Now add some javascript: You should add javascript in :PlaceHolderMain only
Click on pages.Right Click on page which you want to edit.
Select : Detach from page layout
Now add some javascript: You should add javascript in :PlaceHolderMain only
Add javascript inside: <asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
<script type="text/javascript">
alert('hi');
$(document).ready(function() {
var k="str";
alert(k);
});
<script type="text/javascript">
alert('hi');
$(document).ready(function() {
var k="str";
alert(k);
});
</script>