• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

how can i enforce the user not to resize the screen ?

hello everyone:

i am hoping that someone can tell me how to write some code in html that will not allow the user to change the size of the screen smaller that certain size. i have encounter some web pages on which i have not been able to change the size smaller than certain point.

thanks,

rene
0
chrome2000
Asked:
chrome2000
1 Solution
 
mattjp88Commented:
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20443541.html

that should do the trick.  i was trying to make a script that would check and see what the size of the window was when you start, but i couldnt seem to get it to work.

Matt :-)
0
 
AmericanDogmaCommented:
Just remebr things liek that can really piss off the user. Be careful to impliment it carefully.
0
 
JonzaCommented:
this to header:
------------------------------
<script type='text/javascript'>
function setSize(width, height){
  self.resizeTo(width, height);
}
</script>
------------------------------


and to body tag:
<body onload='setSize(640, 480);' onresize='setSize(640, 480);'>




0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now