 |
(Page 1) |
Every web designer has their own favourite
JavaScript, or bits of special code they use over and over.
This page contains some of the code snippets that I like to use now
and then. They are offered here, unsupported, for anyone to
browse and use.
These Code Snippets can be inserted into your page easily to perform simple page tasks. COPY/PASTE the snippets into your web page HTML.
|
Resize current window:
|
|
Header information to make sure page is not
cached: This means the current page will always be viewed in the user's browser, not a previously cached version.
|
|
Add a PRINT button on the page:
|
|
Block RIGHT Mouse Button: |
|
Link to open in a new window:
Change the URL shown here with your new page content URL.
|
Pop Current Page to Front: Warning: This can be really irritating. |
|
Remove Underline from LINKS. Include this within the
<HEAD> tags of your web page and links will no longer be underlined on this page.
|
|
Change highlight link colour. When the user hovers over a link on your page, this will make it change to a different colour. Include within the <HEAD> tags of your page.
|
|
Instant Redirect to new page:
Change the 0 to any other value and it'll count
that many seconds before the redirect to the new page.
|
|