Skip to content

Tag: safari

How to check if IOS/Safari version below 15 or 15 and higher

I need to detect user IOS/Safari version and if its below 15 do not render some content for him, cause it doesn’t support under 15 versions I’ve tried to use So i see in the console the Safari version, but not quiet understand how to check if it 15 or below Answer I think i find solution For me wo…

Insert tag in loop javascript

I want to insert the p tag after each rect tag but unfortunately when I used appendChild the p tag is insert into the rect tag and not after: JS code: I had as a result: ** html Code:** Answer You can use Element.insertAdjacentElement instead of appendChild (which inserts it as a child inside).