Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used WebBrowser in a program to display a site , but I'm not satisfied with a JavaScript file functions on this website,I want to call my own JS file, but I don't know how to use my js file to replace the the original site JS File.
Help Me Please!!Thanks!
感谢Google translate.
Posted

1 solution

The Javascript is fed from the server along with the HTML so you cannot change it dynamically on the website. You could use an HTMLReader to obtain the page, store it on your local disk, and then modify it to contain your own functions before displaying the local version.
 
Share this answer
 
Comments
sinswing 29-Mar-11 0:18am    
Oh!Yes!
Web page use
<script language="javascript" src="open.js"></script>
call open.js

I want to turn it into
<script language="javascript" src="c:\test\open.js"></script>
call on my local disk open.js

how to do?
tell me please~
Richard MacCutchan 29-Mar-11 4:04am    
I just told you how to do it; read my message again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900