Pop Up Window refresh parent

HTML, JavaScript No Comments »

If you have a script that opens up a new window using JavaScript: window.open()

on the child window, if you want to close the window and refresh the parent window, use the following code:

window.close();
if (window.opener && !window.opener.closed) {
    window.opener.location.reload();
}

Submit is not a function

JavaScript No Comments »

if you have a form with a “submit” button and you try to call the submit() function in JavaScript, you will get this error:
submit is not a function

to get around this error, change your button type from “Submit” to a normal button. Now your code will work.

JavaScript String Object Reference

JavaScript No Comments »

full details of String Object in JavaScript

http://www.w3schools.com/jsref/jsref_obj_string.asp

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in