Faqts : Computers : Programming : Languages : JavaScript : Frames

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 6 people (83%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

How can I prevent a window with the frameset page from being resized?

Oct 1st, 2001 01:27
Jean-Bernard Valentaten, Pak So,


Well, you can't always prevent it from beeing resized, but you can use 
the onresize-handler, to create a workaround.
function unResize()
{
  var xWidth = ;/*some value you need it to be*/
  var yHeight = ;/*some value you need it to be*/
  window.resizeTo(xWidth, yHeight);
}
and in the body-tag you write this
<body ... onresize="unResize();">
This should do the trick.
HTH