Change Search tips link from advance search page – SharePoint 2010 Search

<script src="jquery-1.11.1.min.js”>

$( document ).ready(function() {
$(“.ms-advsrchtips” ).find(‘a’).attr(“href”, “javascript:openDiaFormadvsrchtips();”)
});

function openDiaFormadvsrchtips()
{

   //Use SP.UI.$create_DialogOptions() instead of SP.UI.create_DialogOptions()
   //The name of the method starts with a “$”
   var diaOptions = SP.UI.$create_DialogOptions();
   diaOptions.url = ”;
   diaOptions.width = 800;
   diaOptions.height = 550;
   diaOptions.title = “Search Tips”;
   SP.UI.ModalDialog.showModalDialog(diaOptions);
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s