Javascript examples for Browser Object Model:Window innerHeight
Resize modal window/dialog based on the content changes
<!doctype html> <html> <head> <title>test</title> </head> <body> test// ww w. ja v a 2 s . co m <br> test adjust <br> test adjust <br> <br> <script language="javascript"> function adjustDialog() { window.dialogHeight = 400+'px'; window.dialogWidth = 400+'px'; } </script> <button onclick="adjustDialog();">Adjust me</button> </body> </html>