Jump to content

uniURLFrame: change background color of loaded page


Recommended Posts



i want to change the background color of differnt pages in a uniURLFrame...


i tryed out:


procedure Ttestweppage.UniURLFrame1FrameLoaded(Sender: TObject);
UniSession.AddJS(UniURLFrame1.JSName+'.contentDocument.body.style.background = #ffffff;');
UniSession.AddJS(UniURLFrame1.JSName+'.contentDocument.body.style.background-image:none = none;');

..but doesn´t work 


Has anyone a tipp ?




Link to comment
Share on other sites

Hello Del Dev


thanx for suggestion .. i tryed out - but didn´t work ... i dont know if the included page is the problem ..


the included page has this definition according chrome-dev-tools:


body {
  1. background-color#E1E1E1;
  2. background-positiontop center;
  3. background-repeatrepeat-x;
  4. background-image:url(....) 



Link to comment
Share on other sites

  • 7 years later...

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...