Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser Problem....
Message
From
06/10/2003 15:33:41
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
06/10/2003 03:12:05
Mazahir Naya
Kuwait United Co.
Kuwait, Kuwait
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00835266
Message ID:
00835512
Views:
15
Hi Mazahir,

I put some javascript in the header portion of my html file to disable rightclick and selection as follows:
<html>
<head>
<script language="JavaScript">
document.onselectstart=new Function ("return false");document.oncontextmenu=new Function("return false")
</script>
</head>
This works in IE. Don't know about other browsers though.

As for opening a link in the form I think that you might want to investigate
target="top".
Something like
<a href="somelinkhere" target="top">mylink</a>
Hope this helps

Mike.

>hi to All
>i am using Webbrowser control in Vfp 6 with service pack 5.
>everything is fine.but how to disable Right mouse click on control.
>& also if i click on any link it should be open in my form.mean i don't want that link will open any new windows.
>
>any sugession will be apprisiated...
>
>regards
>Mazahir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform