How to show arab warning from left to right

How to show java script warning about arabic characters / text from ltr (from left to right) format.In html we have ltr tag.

+3
source share
3 answers

It mainly depends on the operating system. A simple line change is not 100% correct, as this does not make punctuation correct.

If you need 100% locale independence in the browser, I would suggest using an HTML dialog like jQuery UI instead alert().

+1
source

You cannot do this using regular javascript alert ()

however you can use some kind of custom javascript alert window (you can use HTML inside it)

some like this http://slayeroffice.com/code/custom_alert/ http://jdstiles.com/java/jsalert.html

0

, :
- 'g' ucc

var g="أكتب تعليقا!\nWrite a comment!\n";
  • 'g' ucc
var g="‫أكتب تعليقا!\n‪Write a comment!\n";

var g="‫أكتب تعليقا!\n‪Write a comment!\n";

: (LRE) (& # 8234;) , ; (RLE) (& # 8235;) , .

win , , unicode..., (LRE) (RLE)

0

Source: https://habr.com/ru/post/1730540/


All Articles