Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
190
rated 0 times [  195] [ 5]  / answers: 1 / hits: 25240  / 13 Years ago, wed, july 27, 2011, 12:00:00

When I try to call a URL as a pop-up window through JavaScript, after loading the pop-up window I am able to re-size the window by mouse dragging even after I set the resizable property as 0. Code:



        <script type=text/javascript>
function poponload()
{
mywindow = window.open(factory.php?content=con1, mywindow, location=1,status=1,scrollbars=0,width=300,height=300,resizable=0);
mywindow.moveTo(150, 150);
}
</script>


Please clarify if I made any mistake in the code.


More From » html

 Answers
12

Modern day browsers can block window.open settings. There are no ways to override it unless you manually go to the user's computer and uncheck the checkbox for them.



Pop up windows should be avoided in this day and age. Modal layers placed on the page that are updated with Ajax or iframes can do the same thing and have no size, menubar, and other restrictions placed on them.


[#90976] Tuesday, July 26, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ignacio

Total Points: 467
Total Questions: 128
Total Answers: 79

Location: Luxembourg
Member since Tue, Mar 14, 2023
1 Year ago
ignacio questions
;