I have a grid view that shows various information. If this returns empty grid, the browser should be minimized, if he has any information the browser will be maximized
Is there any way to do this through JavaScript?
This isn't possible with server-side code or Javascript. However, you can change the size of the window (although I would recommend not doing this as it's an awkward user experience).
使用DOM / JQuery找出网格中有多少行,然后使用当前Window之外的maximum / minimum方法...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.