Jump to content

JavaScript change text anchor link iOS 8.1


kiltym
 Share

1 post in this topic

Recommended Posts

I have the following JavaScript, that used to work on all browsers, and now works everywhere but iOS 8.1.x.


It worked fine on iOS 7.x, and works fine using Chrome on 8.x.  Its something specific to Safari.


 


Anyone know a solution to get this working again on iOS?



<a href="http://someurl.com" onclick="this.style.color='grey'; this.innerHTML='Please wait...';">Press Me</a>

It simply changes the text color and value when the link is clicked, no biggie, but iOS 8 seems to have broken it.


The link still works, but the text never changes.


If I add a



return false;

At the end of the onclick, the text changes, but obviously the link does not get followed.


 


Any help is appreciated!


Link to comment
Share on other sites

 Share

×
×
  • Create New...