Cem Türk
asked on
Webbrowser Control and Javascript
Hello guys,
What i want to do is to call a vb function when javascript alert function is run from the webbrowser window. So that no alertbox will appear on the screen and page will continue running... I've tried several ways before, one of them is to overwrite the existing javascript function, but it doesnt prevent the alerts when the page is loading... etc...
in short here is what i want;
when called from the browser window
alert("Hello") must call my alerthandle function in vb with "Hello" as parameter
if its not possible then i am looking for a way to disable alert boxes...
Thanks.
Cem
What i want to do is to call a vb function when javascript alert function is run from the webbrowser window. So that no alertbox will appear on the screen and page will continue running... I've tried several ways before, one of them is to overwrite the existing javascript function, but it doesnt prevent the alerts when the page is loading... etc...
in short here is what i want;
when called from the browser window
alert("Hello") must call my alerthandle function in vb with "Hello" as parameter
if its not possible then i am looking for a way to disable alert boxes...
Thanks.
Cem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
File "C:\WINDOWS\Desktop\Msgbox
==========================
<html><head><title>Test</t
<script type="text/javascript">
function msgbox () {
alert('Hello World');
}
</script>
</head>
<body id="HauptBody" onload="javascript:msgbox(
</body>
</html>