Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to replace http with https via javascript

I have the following rss object on my page...

data.data[i].link

and it produces the following URL...

http://

I would like the URL instead to start out with...

https:// 

What would be the easiest way to modify this?

Thanks for any advice

like image 953
klewis Avatar asked Jun 24 '13 14:06

klewis


1 Answers

data.data[i].link.replace('http://','https://');
like image 110
user2516522 Avatar answered Oct 22 '22 13:10

user2516522