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
Solved

Window.open is getting blocked by the pop up blocker

Posted on 2009-05-12
1
778 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

809 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