function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DannyK89DannyK89 

Browser Warning Message when I open a popup window from visualforce page from site.

Ok so I have been working on a custom public site. Everything on the site is working fine until I try to open a popup window from the visuaforce page. When I do that on certain browsers Like IE i get a warning message.

 

The message reads:

 

To display the webpage again, the web browser needs to resend the information you've previously submitted. If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again.

 

Is there any way to stop this warning from appearing when I have a popup window open?

Abhay AroraAbhay Arora

I think you have this popup in a form and that tries to resend the form ... can you post your code?

DannyK89DannyK89

Here is the CommandLink code:

<apex:commandLink value="{!item[set]}" onclick="popup('/LeadMainReferralStatus');" title="Click this link to open the Status Page."/>

 Here is the Java script:

function popup(page){
            var href    = document.location.href; 
            var string  = href.split( "/" );
            var url = string[0]+'//'+string[2]+'/'+string[3]+page;
            
            
            window.open(url, 'Popup','height=400,width=1000,left=100,top=100,scrollbars=yes,toolbar=no,status=no');
            location.reload(true);
        }