I have a portal's home page and on that page I want to put this but Its not allowing me to put this address and treating this as invalid address..I tried putting the following statement by EDIT HTML but when the page comes its not clickable. How to add this? ok ive added the suggested line but on click nothing is happening..here is what i have in my masterpage. and I also tried what you suggested
<a href="#" onclick='javascript:openDialog('/SitePages/NewReq.aspx');'>New Requisition</a>
well when i click the link nothing happens. I have the following in my masterpage.
<script type="text/javascript">
//User Defined Function to Open Dialog Framework
function OpenDialog(strPageURL)
{
var dialogOptions = SP.UI.$create_DialogOptions();
dialogOptions.url = strPageURL;// URL of the Page
dialogOptions.width = 750; // Width of the Dialog
dialogOptions.height = 500; // Height of the Dialog
dialogOptions.dialogReturnValueCallback = Function.createDelegate( null, CloseCallback); // Function to capture dialog closed event
SP.UI.ModalDialog.showModalDialog(dialogOptions); // Open the Dialog
return false;
}
</script>