JavaScript Reference/Javascript Methods/sup

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"sup()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="var myS = new String("Sample String");

                document.write("regular string"+myS.sup());">

sup me</button> </body> </html>


     </source>
   
  


"sup()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |String | +----------------+--------------------------------------------------------------+

     </source>
   
  


"sup()" Syntax Parameters and Note

   <source lang="javascript">

Note: Display a string as superscript text.

Syntax:

stringName.sup()


     </source>