Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

i want to redirect to main page from iframe javascript

//Will redirect the top most parent Iframe.
window.top.location.href = "http://www.example.com";

//Will redirect the parent iframe.
window.parent.location.href = "http://www.example.com"; 
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to remove first character from string in javascript 
Javascript :: time complexity javascript 
Javascript :: foreach modify array javascript 
Javascript :: use jq to update json file 
Javascript :: react router base url 
Javascript :: themein material ui 
Javascript :: webpack setup proxy manual 
Javascript :: js caps first letter 
Javascript :: findindex js 
Javascript :: javascript test is not a function 
Javascript :: create loop to specific length react 
Javascript :: status code json 
Javascript :: sweetalert allow html 
Javascript :: angular configure routes 
Javascript :: ref in mongoose example 
Javascript :: value should be numeric in angular check 
Javascript :: js random number between 1 and 5 
Javascript :: check / unchecked a checkbox with jQuery 
Javascript :: useeffect 
Javascript :: javascript image to blob 
Javascript :: nodejs express server img src 
Javascript :: create array 
Javascript :: drupal8 get params from route 
Javascript :: for..of 
Javascript :: react-dom and babel cdn 
Javascript :: get array of selected options from select element 
Javascript :: javascript combine objects 
Javascript :: react onclick runs on load 
Javascript :: networkx check if node exists 
Javascript :: 100vh mobile 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =