Share Share on Facebook Share on Twitter Pinterest Email <script> if (location.protocol != ‘https:’) { location.href = ‘https:’ + window.location.href.substring(window.location.protocol.length); } </script> 0 Siddharth Shukla Website Related Posts Change input value onclick button – pure javascript or jQuery June 17, 2020 how to redirect non www to www using javascript August 24, 2018 Open URL in same window and in same tab July 28, 2018 Write A Comment Cancel Reply Save my name, email, and website in this browser for the next time I comment.