PDA

Click to See Complete Forum and Search --> : scroll through vb webbrowser control javascripts?


Scorpion965
Aug 28th, 2003, 02:03 AM
I know it is possible to use the various webbrowser control properties to go through the images and form components on a webpage loaded in the webbrowser control, is it also possible to go through an array of 'javascripts' on that webpage and make changes to those scripts?

Does anyone know a resource that lists all of the available webbrowser.document.properties?

I posted a related question about a week ago and got a really excellent answer for if someone were to click a link that then created a 'set as homepage' prompt, but the problem I am having is the prompt is started from a javascript, not a click event...

ie


<script language="JavaScript">
<!-- Begin
function right(e)
{

if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
{
var url="http://www.example.com";
var title="Example - This is your new Homepage";
javascript:window.external.AddFavorite(url,title);
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;

if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);

window.onmousedown=right;
window.onmouseup=right;

// End -->

</script>