Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Resizing pop up window

 
Arya Devan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is any javascript error on the web browser, they display it using a small popup in which there is a 'hide details' and 'show details' tab. If i click on that the window gets resized along with the details. How is is achieved ?

Thanks in advance.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is a windowed element that you have no control over. If you want to change a size of a normal pop up window, you got window.resize(), but browsers now a days have an option to block windoww.resize. Best to just use layers (divs) withs display = "none" and display="block" which will show and hide them.

Eric
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic