Solved

Window.open is getting blocked by the pop up blocker

Posted on 2009-05-12
1
779 Views
Last Modified: 2012-05-06
hi,

I am using the following code to pop a window.  Now this pop up is getting blocked by the pop up blocker both in IE and firefox.

the onclick event doesn't blocks the pop up but the onkeydown event does.

Nother issue is sometimes the focus stays on the pop up window and sometimes not and the pop up window gets minimized.

Thanks,


<input type="text" name="question" id ="question" value="question" onfocus="this.value=' ';" onkeydown="if (event.keyCode == 13) showpopup();" /> 
<input type="image" name="AskButton" id="AskButton" src="qst.jpg" onclick = "showpopup();"  /></td></tr>
 <script language = "javascript:>
function showspopup(Obj)
{
 
 window.open('http://abcd-test.com','', 'width=825,height=625,toolbar=No,location=No,scrollbars=Yes,status=Yes,resizable=Yes,left=100');
 window.focus();
 return false;
  }
</script>

Open in new window

0
Comment
Question by:Shiva-Kumar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
baiju_nagori earned 350 total points
ID: 24368037
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question