Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnContextMenu on Web Browser control
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
OnContextMenu on Web Browser control
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01017904
Message ID:
01017904
Views:
55
I have been trying to disable the right click context menu on a web browser active x control without success.
Note: I tried outerhtml, but that resulted in nothing displayed.

What am I doing wrong?
TEXT TO lcHtml TEXTMERGE NOSHOW PRETEXT 1+2
	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
	<title>New Page 1</title>
	</head>
	<body oncontextmenu="return false;" bgcolor="#EDF8FE">
	<font size="1">
	<<lcHtmlContent>>
	</font>
	</body>
	</html>
ENDTEXT 
TRY 
	WITH this.pageframe1.page_advanced.tabs_expression.page1.olecontrol1.Document.body
		.innerhtml=lcHtml
		.bgcolor="#EDF8FE"
		.oncontextmenu="return false;"
	ENDWITH 
CATCH 
ENDTRY 
Reply
Map
View

Click here to load this message in the networking platform