I am currently trying to create a chrome extension that alters a website (an interface for a ip camera that I bought, thats also why the site is a local site like 192.168.178.70 for example). I just want to add some buttons and stuff like that to add some functionality.
I used
document.body.onload
to wait until everything has loaded so I can grab a table or a div or whatever and create and add my button to it. But document.getElementById("ipcam_wrapper") does not seem to work properly, it returns null.
Well I tried to do the same thing in google chrome developer mode but it does also return null. I actually managed to get the element this way once but I am not able to recreate it because I did not do anything different.
There is only one element with that specific ID.
Here i try to get the element:
So what am I doing wrong?
best regards