0

      var str = (data.User.g.number)
                  infoWindow.setContent(str.link("sms://" +  (data.User.g.number))) ;
                  infoWindow.open(map, this);

I created this code that creates a link in javascript with str.link. However, this method is not supported on all browsers which is why I got this error. I was wondering if anyone knows of an alternative method to what I want to accomplish or with the code I provided or knows why this code isn't working. I basically need to create a link only using javascript and be able to insert a variable in the link. Error

0 Answers0