Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Control Question
Message
From
10/11/2005 09:09:33
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01065841
Message ID:
01067130
Views:
26
Well the body style settings eliminates the 3d border. The Javascript eliminates both the context menu and selection. Did you try it?


>I want to both disable the context menu and disable the 3d border.
>
>
>
>>I'm not sure what you mean Kevin. Could you explain further? What are you trying to do? If you're trying to prevent the context menu from appearing when you right-click try this within the HEAD tags:
>>
>>
>><script language="JavaScript">document.onselectstart=new Function ("return false");document.oncontextmenu=new Function("return false")</script>
>>
>>
>>It also prevents the ability to select when left draging.
>>
>>Hope this helps.
>>
>>Mike
>>
>>>That did it. Thanks.
>>>
>>>How do you impliment the BODY tag with the following:
>>>
>>>
>>><script language=javascript>
>>>function mousedown() {
>>>if (window.event.button == 2)
>>>{ document.write("") }
>>>}
>>></script>
>>></head>
>>><body onmousedown=mousedown();>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>I used a css to define a document body style. You could also put these into the body tag of your HTML. Something like
<body style="border-style:none; border-width:0">
. If this doesn't work try removing the hyphens; I cannot remember what the correct names are.
>>>>
>>>>Hope this helps.
>>>>
>>>>Mike
>>>>
>>>>
>>>>>Yes, that is what I want.
>>>>>
>>>>>Where do I place these statements in the document?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Kevin,
>>>>>>
>>>>>>What do you mean by the "border"? Is it the 3D effect that you want to eliminate? If so, I found that the document.body.border-style="none" and border-width="0" does it.
>>>>>>
>>>>>>Mike
>>>>>>
>>>>>>
>>>>>>>How do you turn off the border of a web browser control?
Previous
Reply
Map
View

Click here to load this message in the networking platform