Page 1 of 1

Refresh & No Right click BBCode

Posted: 06 Mar 2010, 09:47
by BBCode Bot
Refresh & No Right click BBCode

Author: djgalix
Description: The Refresh & No Right click BBCode protect your pictures with a "no right click". The page refresh when You right click.
Working in Internet Explorer and Firefox.
Not working in Opera.
Image

BBCode:

Code: Select all

[Refresh][/Refresh]
HTML:

Code: Select all

<script type="text/javascript">
function refresh()
	{
	document.location.reload();
                return false;
	}
document.oncontextmenu = refresh;
</script>
Helpline:

Code: Select all

Refresh: [Refresh][/Refresh]
Example:

Code: Select all

[refresh][/refresh]
Demo:
[refresh][/refresh]
Try to right click in this topic. You will see it is not possible and the page refreshes instead.

Re: Refresh & No Right click BBCode

Posted: 25 Jul 2010, 18:40
by Mark1200
BBCode Bot ยป 06 Mar 2010, 08:47 wrote:Refresh & No Right click BBCode

Author: djgalix
Description: The Refresh & No Right click BBCode protect your pictures with a "no right click". The page refresh when You right click.
Working in Internet Explorer and Firefox.
Not working in Opera.
Works also in Google Chrome! :D