window.open vs self.resize

window.open vs self.resize

sachin nik's picture

Hello, can we resize html ? window.open("XYZ.html","_self","width=500,height=400"); i have tried using above code to lunch html. but it takes default browser width and height when .msi file run. Let me know any suggesstion

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Marvin O's picture

Hello,

I suggest trying the following methods:

  • Window resizeTo(): This method resizes a window to the specified width and height (in pixels). The syntax is: window.resizeTo(width,height)
  • Window resizeBy(): This method resizes a window by the specified amount (moves the bottom right corner of the window by the specified number of pixels defined. The top left corner will not be moved). The syntax is: resizeBy(width,height)

You can test these methods in our HTML5* Playground

.

Moreover, I suggest checking the following article for additional technical background Developing HTML5 Applications for Intel AppUp(SM): Part 1 A Simple Example.

HTML5 Technical Resources: http://www.w3schools.com

Let us know if you require further assistance,

Regards,
Marvin O.
Technical Support Team
Intel AppUp(SM) Developer Program
Intel AppUp(SM) center
*Other names and brands may be claimed as the property of others.

Ozkan Altuner's picture

As Marvin suggested; I've used window.resizeTo() to resize my apps' windows size and it workes perfectly :)

Login to leave a comment.