2

I am working on UIWebView. But blink tag is not working in webview. How to blink text in UIWebView

 NSString *htmlText= @"<blink><br>My Text</blink>";

[webView loadHTMLString:htmlText baseURL:nil];

Reply ...

Mani
  • 1,841
  • 15
  • 29

1 Answers1

2

The <blink> tag is deprecated and shouldn't be used in modern HTML. You can achieve the same effect through JavaScript or pure CSS, which a UIWebView will support. This question - Blinking text cross browser - will help you implement either approach.

Community
  • 1
  • 1
lxt
  • 31,146
  • 5
  • 78
  • 83
  • Thanks txt. how to use javascript in my project. can you send me script. Thanks – Mani Feb 18 '13 at 11:39
  • You can embed the JavaScript inside your HTML - it doesn't need to be a separate file. The question I linked to should help you out. – lxt Feb 18 '13 at 12:25