Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anyone know vb script (web devolopment)?

Status
Not open for further replies.

canix

Technical User
Jun 1, 2000
41
US
I am trying to figure out how to lock down the controls for your right click on a web page. Please don't tell me there isn't a way, because I have seen it...whether it be by javascript, java or VB.. I need to know.... Any help is appreciated.......
~X~
 
I have made some simple VBScript programs
I have Front Page 2000 and it has a "macro editor" which is the VBA editor that comes with Acess 2000 and it has help in it for VBScript command words.

If you are going to write VBscript you need an editor that understands it and a place where you can get help on you to use.

I presume since your WEB machine can understand VBscript that it has Front Page 2000 extension on it.

DougP, MCP
dposton@universal1.com

Ask me how Bar-codes can help you be more productive.
 
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then MsgBox "right click"
End Sub
 
Hi

Here's some JavaScript

<html>
<head>
<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!-- Hide from older browsers
function noRightClick(NNE) {
if (navigator.appName == 'Netscape' &amp;&amp;
(NNE.which == 3 || NNE.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &amp;&amp;
(event.button == 2 || event.button == 3)) {
alert(&quot;* Ooooops *&quot;);
return false;
}

return true;
}

document.onmousedown=noRightClick;
document.onmouseup=noRightClick;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=noRightClick;
window.onmouseup=noRightClick;
// -->
</script>
</HEAD>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top