Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js https redirect

if (location.protocol !== 'https:') {
    location.replace(`https:${location.href.substring(location.protocol.length)}`);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: refresh window js 
Javascript :: jQuery ui embed 
Javascript :: javascript replace spaces with dashes 
Javascript :: yarn react-redux 
Javascript :: javascript detect escape key 
Javascript :: how to give radius to imagebackground in react native 
Javascript :: javascript void(0) href 
Javascript :: react image onerror 
Javascript :: How To Use Media Query Using Jquery 
Javascript :: js countKeys 
Javascript :: java script converting text to slug 
Javascript :: javascript scroll to top of page 
Javascript :: how to start json server in particular port 
Javascript :: mongo atlas filter by array not empty 
Javascript :: jquery select checked radio button value 
Javascript :: jquery-3.5.1.slim.min.js download 
Javascript :: how to get the selected text of dropdown in jquery 
Javascript :: angular valuechanges get id 
Javascript :: disable textbox jquery 
Javascript :: Error: It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. 
Javascript :: hide header react navigation 
Javascript :: remove special characters from string javascript 
Javascript :: javascript check if not undefined 
Javascript :: update create react app 
Javascript :: node console log without newline 
Javascript :: disable right click 
Javascript :: box shadow react native 
Javascript :: command to create react app 
Javascript :: javascript get current month start and end date 
Javascript :: remove previous datatable instance 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =