1

I m using

<a onclick="javascript:SP.UI.ModalDialog.ShowPopupDialog('url')">

But for some libraries, the size of pop up dialog is not large enough.

How to add the property width or auto Size without using custom function.

I cannot use functions because security disable script automatically but not in a link.

Thanks for your answers.

1 Answer 1

3

You can use an alternative method showModalDialog for that purpose:

<a onclick="javascript:SP.UI.ModalDialog.showModalDialog({ autoSize: true, url: 'url' });"> 
1
  • I would always go with this as its recent and has more options Commented Jan 15, 2019 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.