Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript redirect

<p onclick="myFunction()"></p>
<script>
function myFunction() {
	  window.location.href = "https://whereyouwouldliketogo.com"
}
</script>
Comment

javascript howdo i redirect-to another webpage

window.location = "https://example.com/";
Comment

PREVIOUS NEXT
Code Example
Javascript :: function redirect javascript 
Javascript :: redirect to another domain javascript 
Javascript :: vue test utils emitted 
Javascript :: js display only date 
Javascript :: react form on submit 
Javascript :: html call javascript variable 
Javascript :: sort array of objects javascript 
Javascript :: js remove zeros after decimal 
Javascript :: regex for entire word 
Javascript :: npm json server 
Javascript :: console redux state shows proxy 
Javascript :: how to wait in javascript 
Javascript :: javascript add css file 
Javascript :: change event listener in javascript 
Javascript :: select random from an array 
Javascript :: js sound 
Javascript :: local storage angular 
Javascript :: invalid geojson object leaflet 
Javascript :: react native apk build 
Javascript :: json fetch data doest show 
Javascript :: javascript load multiple images 
Javascript :: jquery open image in new tab 
Javascript :: regex ranges 
Javascript :: slice string javascript from index to space 
Javascript :: javascript empty cache and hard reload 
Javascript :: vuex-module-decorators access other state 
Javascript :: last item in object javascript 
Javascript :: javascript distance math 
Javascript :: iffi in js 
Javascript :: send multiple files using formdata jquery 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =