Click here to Skip to main content
16,016,623 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am opening a popup window using window.open method.
The page which gets opened has an div tag inside it.
Div contains URL of a website.
Some websites length is small and some have large.

So how to resize popup window based on contents?

When the content length is small then popup window size should fit to that length.
When the content length is large then popup window size should fit to that length i.e popup window width should increase.


What I have tried:

I tried but when url gets larger then it comes out of popup window.
I tried using JS and jquery.
Posted
Updated 4-Jan-18 5:46am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900