Jump to content

Recommended Posts

Hi Guys

 

Strange request but stick with me. I have a site that I can't currently access that opens a popup window targeted at another site i can access. I need to change the content of that popup which is straight forward enough except for that the function that opens the popup window has the new window set to a small size with no scroll.

 

Resizing the window is easy enough with an onload function. But I need the window to be scrollable.

 

So if a window is opened using window.open(), but the window is not opened with a scrollbar, is it possible to subsequently add the scrollbar dynamically - i.e. through an onload function?

 

This is purely as a temporary solution.

 

I've googled for an hour and tried varies snippets of code but none work :/

 

So a definitive answer as to whether this is possible would be amazing!

 

Drongo

Link to comment
https://forums.phpfreaks.com/topic/270746-adding-scrollbar-to-popup-window/
Share on other sites

 

Yes I have :)

 

I think you misunderstood me. It's not the window.open function I have an issue with. The issue is I don't have access to the site that opens the popup window. The only bit I control is the content of the popup window. I need to change that content but the new content is bigger than the dimensions of hte popup window and the popup also has no scroll set.

 

So I need a way to change the scrollbar property of the window from within the popup.

 

Hope that makes more sense :)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.