Answer the question
In order to leave comments, you need to log in
Is it possible to modify the html code of a page on the fly?
Computer with Win7, Internet Explorer 9, in a domain, has local admin rights.
The essence of the problem: you need to embed your javascript in the code of the resulting page (optimization of filling out forms). The nuance is that group policies have disabled the ability to set a proxy in the browser.
Answer the question
In order to leave comments, you need to log in
Bring up a local server, add it to the trusted zone , set the trusted zone to a low security level (or manually allow cross-site scripting). After that, the script hosted on the page in your domain will be able to open the page in a window or frame and talk to the DOM.
I open localhost in the browser with the following code (I left only the meaningful code):
<iframe id="frame1" width=100% height=100% src="http://адрес.ru"></iframe>
<script>
$(document).ready(function(){
$('#frame1').contents().find('img').hide();
});
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question