Click here to Skip to main content
16,016,557 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
From server side, I want to open pdf file in new window.

I add window.open and first time it ask me to allow popup and after allowing, it refreshes my page.
I want to avoid refreshing and open the pdf in new window (check with IE)

Please help me.
Posted
Updated 18-May-11 10:10am
v2
Comments
fjdiewornncalwe 18-May-11 9:09am    
Think about the question. It is a pop-up blocker. What would it's purpose be if it could be circumvented?
Sergey Alexandrovich Kryukov 18-May-11 15:57pm    
You're absolutely right, Marcus.
That's why I suggest alternative approach, well, obvious. Please see my solution.
--SA
Dalek Dave 18-May-11 16:11pm    
Edited for Grammar and Readability.

Start here[^].
 
Share this answer
 
Not using pop-ups would be much better. Think about it: you want to fight against your user decision. Do you still hope that you're user will gladly pay for your service even if you do such things?

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900