Solved

Window.open is getting blocked by the pop up blocker

Posted on 2009-05-12
1
774 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
1 Comment
 
LVL 4

Accepted Solution

by:
baiju_nagori earned 350 total points
ID: 24368037
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article discusses how to create an extensible mechanism for linked drop downs.
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now