Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery change page on click

$('#link').click(function(){
  alert("Clicked");
  window.location.href="http://smashingmagazine.com";
});
Comment

jquery change page on click

$('#someButton').click(function() {
    window.location.href = '/some/new/page';
    return false;
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: add query parameter to url react router v6 
Javascript :: convert date to string javascript 
Javascript :: jquery show password 
Javascript :: javascript round to 8 decimal places 
Javascript :: date add hours javascript 
Javascript :: javascript format date time 
Javascript :: js capitalize word 
Javascript :: react native textinput no keyboard 
Javascript :: checkbox set checked jquery 
Javascript :: chart js small bars too thin 
Javascript :: javascript get date 
Javascript :: datepicker jquery year range 
Javascript :: convert string to set in js 
Javascript :: bcryptjs.hash 
Javascript :: remove item at index in array javascript 
Javascript :: how to know actual scroll js 
Javascript :: how to get the data from url in javascript 
Javascript :: for each of object 
Javascript :: js different 
Javascript :: javascript convert timestamp to formatted date 
Javascript :: wordpress javascript localization 
Javascript :: object destructuring javascript 
Javascript :: jquery is not defined rails 
Javascript :: submit form using jquery 
Javascript :: find specific word string js 
Javascript :: quotation marks javascript 
Javascript :: javascript object destructuring 
Javascript :: stop keyframe animation javascript 
Javascript :: javascript anagram two strings 
Javascript :: round number 2 decimals javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =