Link to home
Start Free TrialLog in
Avatar of Cem Türk
Cem TürkFlag for Türkiye

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
ASKER CERTIFIED SOLUTION
Avatar of vb_elmar
vb_elmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
==============================
File "C:\WINDOWS\Desktop\Msgbox.HTM" :
==============================


<html><head><title>Test</title>
<script type="text/javascript">
function msgbox () {
  alert('Hello World');
}
</script>

</head>
<body id="HauptBody" onload="javascript:msgbox()" bgcolor="#00FFFF">
</body>
</html>