I have the following code to create a modal window:
If the user closes the modal window and tries to re open it, the program throws the following exception:
Unable to get value of the property 'window': object is null or undefined
In addition. The function only loads its content from the contentURL page the first time. it does not refresh the content every time the function is called, which is the behavior that we would expect. Can you help me, please?