Click to See Complete Forum and Search --> : Pop Up Window and Lock the Screen


sumon177
08-02-2006, 09:31 AM
Hi,
I wonder if I can create a pop up window and lock the parent window. The users can't use the parent window unless they close the pop up window.

Thanks

Charles
08-02-2006, 12:15 PM
To open the child, something like:<a href="http://www.w3.org/" onclick="window.open(this.href, 'child'); return false">W3C</a>
And in the child document:<script type="text/javascript">
onblur = function () {self.focus()}
</script>

pacerier
08-05-2006, 06:57 AM
if you are talking about a form. you can disable all elements of the form and only enable them after the popup is closed. you should be able to check if the popup is closed by finding for its title. and if doesn't return anything it means that the popup doesn't exist