<script src="<link to file>jquery-1.11.1.min.js"></script>
<script>
$( 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 = '<youR page url>';
diaOptions.width = 800;
diaOptions.height = 550;
diaOptions.title = "Search Tips";
SP.UI.ModalDialog.showModalDialog(diaOptions);
}
</script>
No comments:
Post a Comment