Posted by Harlan Messinger on 12/22/06 12:22
Arjen wrote:
> Jan PA1RQR schreef:
>> Hello,
>> I have made a homepage with a small javascript routine to suppress the
>> visablility of the sourcecode when you press the right mousebutton,
>> this is working in I.E.
>> But in firefox the code is still visible.
>> Q. How can I make the sourcecode not vissible when I press the right
>> mouse button.
>> Thanks for help. Jan (NL)
>
> First of all i wouldn't recommend hiding your source code.
>
> But if you really insist you can make it more difficult. You could use
> an ajax request to fill the page. That way the final source code wont
> show up with view source. There are easy methodes of viewing the
> generated source but imho not many 'simple visitors' know how. Offcourse
> not all browsers are compatible (many are dough)
And of course this means the website won't be available to people who
don't have Javascript turned on.
[Back to original message]
|