You must define some flag. For example, put something in cookies or add a URL. Then in your javascript define a handler ready, after which it is called when the page loads:
$(document).ready(function() {
if (checkFlag()){
MyDialogPopup();
clearFlag();
}
});
Your handler will look like this:
if (https!=' ')
{
reloadURL = myCurrentPage.replace('#','').replace("http",https);
setFlag();
window.location.href = reloadURL;
}
, jquery.cookie. setFlag, checkFlag, clearFlag:
function setFlag(){
$.cookie('show_dlg', 'true');
}
function clearFlag(){
$.cookie('show_dlg', null);
}
function checkFlag(){
return $.cookie('show_dlg') == 'true';
}