Skip to content

Tag: JavaScript

Reload a page using JavaScript

If you need to reload a page programmatically, use this method: [sc name=”src” url=”https://stackoverflow.com/questions/3715047/how-to-reload-a-page-using-javascript” ]

Leave a Comment

Redirect to another website

To redirect to another website, change the value of window.location.href: [sc name=”src” url=”https://stackoverflow.com/questions/503093/how-do-i-redirect-to-another-webpage” ]

Leave a Comment

Append to a JavaScript array

You can append items to an existing array in JavaScript using the push() method: [sc name=”src” url=”https://stackoverflow.com/questions/351409/how-to-append-something-to-an-array” ]

Leave a Comment