Here is the website: Credit Union Careers & Jobs in Jacksonville | 121 Financial Credit Union
Here is JQuery I tried using unsuccessfully:
var el = $("gnewtonIframe").contents().find("svg[class='expand-svg']");
Any idea what I am doing wrong?
It should work if you querySelect the class alone with your vanilla JS.
I don’t think I’ve ever seen a
.click() built in method before.
I think The Same Origin Policy prevents you from scripting an Iframe from a different domain.
I suggest checking this example by w3school: How To Get an Element in an iframe
Thanks for the reply. I can’t seem to get it to work. I am not for sure, but maybe ‘The Same Origin Policy’ might be the cause like @front_endDEV01 mentioned.
Thanks. I was hoping this was not the case, but maybe so.
Is ‘The Same Origin Policy’ a security header?
The same-origin policy restricts which network messages one origin can send to another. For example, the same-origin policy allows inter-origin HTTP requests with GET and POST methods but denies inter-origin PUT and DELETE requests