Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Window.open is getting blocked by the pop up blocker

Posted on 2009-05-12
1
Medium Priority
?
782 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 1050 total points
ID: 24368037
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

618 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