Hello . I have a web page and a button on it. From that button i pop-up another page and update the user's information. After updating is done, it focuses to my original page. Not the page that i have been working. Why is this happening?

How can i make it to focus on my current working window?

If you where just referring back to the parent window, then you can do the following code:

<script id="script15" type="text/javascript">
<!-- 
window.onload = function() {

window.open("somepage.html");
top.focus(); // gains back the focus to the parent window.

};
// -->
</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.