List/Grid Java Scripts Subscribe RSS feed of category Java Scripts

Change iframe url using javascript

Change iframe url using javascript

If you want to change the iframe url from the iframe window, you can use this small function to change the url of the iframe. <script type=”text/javascript”> $(document).ready(function() { $(‘#clickToClose’).click(… Read more »


Open link in parent from child window or iframe using javascript

Open link in parent from child window or iframe using javascript

If you want to control parent window’s URL from the child frame or child window you can use “window.parent” to control the parent window. The complete solution is: <script type=”text/javascript”>… Read more »


Add custom or extra fields on registration page in wordpress

Add custom or extra fields on registration page in wordpress

Open your theme’s function.php file and drag this PHP code in. <?php // This function shows the form fiend on registration page add_action(‘register_form’,’show_first_name_field’);   // This is a check to… Read more »


How to check date if date is between two date

How to check date if date is between two date

This function the return the true and false if date is exist or not exist. function dateWithin(StartDate,EndDate,CheckDate) { var b,e,c; s = Date.parse(StartDate); e = Date.parse(EndDate); c = Date.parse(CheckDate); if((c… Read more »


How to fetch current date and time using Javascript

How to fetch current date and time using Javascript

JavaScript Current Time Clock With the newly created Date Object we can show the current date and time, now only a variable which store the current date and time. We… Read more »


© 2012 Sumit Bansal. All rights reserved. XHTML / CSS Valid.