+ Start a Discussion
Starz26Starz26 

window.open oncomplete from commandbutton not working

I need to Open a new window after saving an object from the VF Page.

 

1. Command button calls the method to create the record

2. oncomplete I need to open a popup window.

 

I tried everything I can think of but for some reason it seems you cannot open a new window after the ajax call...

 

put thin in your command button and no window will open:

 

oncomplete="window.open('http://www.google.com'); return false;"

 

any ideas on how to open a new window after the controller method is finished/

Best Answer chosen by Admin (Salesforce Developers) 
kiranmutturukiranmutturu

did you check with your pop-up settings ? some times those settings will stop firing thr same

All Answers

kiranmutturukiranmutturu

did you check with your pop-up settings ? some times those settings will stop firing thr same

This was selected as the best answer
Starz26Starz26

That was it......

 

I forgot that if it was not a direct result of a user click the pop up blocker would kill it...

 

Thanks