JavaScript : cool tips and tricks

Agreed JavaScript has nothing to do with Java, except for the sufix, I know JavaScript is not a full fledged programming language and many serious programmers consider it as a toy for teenagers, but it does pull up some powerfull yet cool stuffs for the web browser/UI. If you can take advantage of it, you can present your data in a better and flashyer way and win hearts, remember however complex your code might be, in the software world appearence does matter!.

some cool tricks .. most of it might be lame for javascript pros, but i want to put them together here for my reference…

Quick & Simple Auto Redirection

<script type="text/javascript">
<!--
window.location = "http://www.google.com/"
//-->
</script>

Simple Page with java Script for a Tabbed Page : – Example – summary.html

JS example of creating a Dynamic Tabbed Html page – This has the feature to dynamically load the tabs ( or the html files associated with the tabs ) instead of loading all data at once.

Drop Down to display stuff in the same page : – http://www.thesitewizard.com/archive/navigation.shtml – Example – index.html

Collapsing Table using Javascript/DOM/CSS : http://icant.co.uk/sandbox/footercollapsetables/ – Example –

Advertisements

Leave a comment

Filed under javascript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s