Jump to content

IE object get BACKGROUND_IMAGE


DaLiMan
 Share

Recommended Posts

1 hour ago, Subz said:

Glad it works, I realised now that you wanted to replace the url with V or X so updated the code here, you just need to change the URL path in the _Get_Background function.

 

Subz, youre the man!  

Thanks for the update, this is exactly what I needed.  :hyper:

Link to comment
Share on other sites

On 2/22/2017 at 2:35 PM, Subz said:

@Juvigy Inputs don't have innerhtml, technically you could do it from the parentnode which is a span as span can include innerhtml.  Hope that makes sense.

I am pretty sure that i used it on nested inputs and it worked. OuterHTML  works in your example.  Shouldn't it work like this:

<input name="button" value="Click" ... > InnerHTML Goes Here </input>
Link to comment
Share on other sites

@Juvigy As mentioned in the url below on "The innerHTML property is valid for both block and inline elements. By definition, elements that do not have both an opening and closing tag cannot have an innerHTML property."  Inputs do not have a closing tag .i.e. "</input>". 
https://msdn.microsoft.com/en-us/library/ms533897(v=vs.85).aspx

Elements Reference including the elements object properties which will show you which elements can use innerText or innerHtml.
https://msdn.microsoft.com/en-us/library/hh772721(v=vs.85).aspx

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...