I'm working with node-webkit. I want to do something when node-webkit visits some specific URL, but I don't know how to execute a script when node-webkit visits the other URL.
For example http://www.google.com
. I can only execute native scripts, but how can I execute a script when I visit another URL like a chrome plugin?
<script type="text/javascript" src="">
document.getElementById('id').click();
</script>
Script like this can only execute when visit my native script. How can I get it to execute when visiting http://www.google.com
?