Search This Blog

Thursday, April 4, 2013

JavaScript Rotating Banner..!

Hello, All... Below shown is a code for Javascript Banner Rotation.
You can use this code for displaying Advertisement in your webpage.
Also include this CSS(rotat.css) file for setting absolute  position and z-index property.

1.) rotat.css

2.) rotate.html

                                                     N'joy Friends..!

Thursday, March 7, 2013

How to disable Back Button using JavaScript..?

There are sometimes requirements when you have to disable your browser back button,so it won't go to previous pages. For example, when you press log-out and then on the current page the back-button or Backspace key should be disabled to maintain security...

So here is a code for javascript.
Put this snipt on  pages when you require this disabled back-button functionality:

<SCRIPT type="text/javascript">                          
 function noBack() { window.history.forward(); }         
<BODY onload="noBack();"                                 
 onpageshow="if (event.persisted) noBack();" onunload="">