window.open vs self.resize

window.open vs self.resize

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 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

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.

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

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui