Hi,
I have the below code to block the view source but its not working for me. Someone pls take a look and let me know. Thanks.
<html>
<head>
<script language="javascript">
function onKeyDown() {
// current pressed key
var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
if (event.ctrlKey && (pressedKey == "c" ||
pressedKey == "v"))
{ // disable key press porcessing
event.returnValue = false;
}
} // onKeyDown
</script>
</head>
<body>
<DIV align=center>
<DIV align=center style="width: 927; height: 117">
<TABLE cellSpacing=0 cellPadding=0 width="859" border=0 height="106">
<TBODY>
<TR class=header>
<TD vAlign=left height="78" width="829">
<TR>
<TD colSpan=2 height="28" width="1109"><!--<table border='0' style="background:url() top repeat-x;" width='100%'>-->
<TABLE style="BORDER-RIGHT: #efefff 1px solid; BORDER-TOP: #efefff 1px solid; BORDER-LEFT: #efefff 1px solid; BORDER-BOTTOM: #efefff 1px solid"
cellSpacing=5 width="100%" border=0>
<TBODY>
<TR class=header>
</TR>
</TBODY>
</TABLE>
</div>
<br>
<table width="50%" border=0 bordercolor="#FF0000" >
<tr>
<TD align = 'left' >
<a href = "../index.php" ><FONT face="Arial, Helvetica, sans-serif"
size=2><I> <font color="#FFFFFF"><img src="BENGALIlist.BMP" alt="" width="137" height="39" /></font></I></a>
</TD></TR>
</table>
<form name="aForm"><input type="text" name="aText" onkeydown = "onKeyDown()"></form>
<table align = 'center' width = "55" border = "0" style = 'table-layout:fixed'>
<tr bgcolor = #00FF00>
<th>Name</th>
<th>Specialty</th>
<th>Address/Contact</th>
</tr>
<tr></tr><tr></tr>
<tr > <TD COLSPAN = "4"><A NAME="ny"> <font color = "red"> <b>New York Doctors</B></A> </TD>
<TD></TD>
<TD></TD></tR>
<tr bgcolor = "#AFC7C7">
<td ALIGN = "left" valign = "top"><b> Doctor</b><br><br><br><br></td>
<td ALIGN = "left" valign = "top">Medicine, Dentist.</td>
<td ALIGN = "left" valign = "top">Address: 7017 37 ave. <br>nj</br><br> </td>
</tr>
<tr bgcolor = "#AFC7C7">
<td ALIGN = "left" valign = "top"><b>Dr. Hasan, MD </b><br><br></td>
<td ALIGN = "left" valign = "top">Board Certified.</td>
<td ALIGN = "left" valign = "top">Address: 3743 76th st.<br> nj<br><br></td>
</tr>
</table>
</body>
</html>