javascript - How to modify only the DESIGN temporarily (client-side) of an external site that I don't have directly access to? -
it normal website have captcha , form submit , check if captcha correct, take id , request information.
i not have access site, , not mine. need information, site not have design, want modify design of site make better see, visually.
can this?
i tried using php curl , jquery $ajax crossdomain true, got access denied on two.
important: want firebug does, temporary changes page layout, when refresh lose because client-side.
something like:
javascript:changecontent();
is possible?
you can't. can include site using iframe. won't able update it. if could, every other site. means, go on site facebook , change things.
access dom of iframe:
var iframe = document.getelementbyid('myframe'); // id of iframe var iframe = iframe.contentwindow || iframe.contentdocument; if (iframe.document) { // dom can accessed iframe = iframe.document; iframe.body.style.backgroundcolor = "blue"; // example } else { // dom can't accessed in browser. }
i forgot. can't access dom of iframe unless on domain. cross-site scripting
not allowed @ all. conclusion: not possible.
Comments
Post a Comment