javascript window.open is not working in IE

cakephp-2.0, javascript, jquery, php

Solution

check this How do you get window.open to work in internet explorer 7?

This is part of the security changes made in IE6. Now you can only call "window.open" from within a user-initiated event. For example, your code would work inside an element's onclick event. The "window.open" MSDN page says this

link

Problem

I want link to be open in new window but when i click on write_review in IE it is opening in new tab. I have checked for spaces in the arguments which are causing the problem. But no problem with that. I have checked on URL :- Javascript window.open is blocked by IE popup blocker But its not working for me.. This is my working code in another browser. ``` // Opening pop-up window for the write review jQuery('a#write_review').click(function() { var w = 1000; var h = 650; var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); var planid=$(this).parent().parent().find('input[name="data[PlanIdsel]"]').val(); var providerid=$(this).parent().parent().find('input[name="data[ProviderIdsel]"]').val(); var rep=$(this).parent().parent().find('input[name="data[Repsel]"]').val(); var url = "<?php echo $this->webroot ?>"+"enrollments/write_rating/"+planid+"?Rep="+rep+"&providerId="+providerid; window.open(url, 'subWind', 'status, scrollbars, resizable, dependent, width='+w+', height='+h+', left='+left+', top='+top); }); ``` Please guide me or correct me..

Original source

Related problems