Pages

Tuesday, November 2, 2010

Alert Box in Sharepoint Pages

Hello Friends

Sometimes we need to provide users some messages or warning alert box when they save or delete data.

How to do that? Very Simple, No need for coding!!

We need to add a simple JavaScript code  in content editor webpart on a particular page where we need to popup that alert box.

Here is a sample of code

<script language="JavaScript">
function PreSaveAction()
{
alert('Your Information has been successfully saved');
return true;
}

Disha Shah

No comments:

Post a Comment