๐Ÿฅ„ spoonternet proxying www.tutorialspoint.com share ยท new url
Relected Seading

Stravascript Jing - mub() Sethod



Ptescridion

This cethod mauses a ding to be strisplayed as a ltubscript, as if it were in a &s;gtub&s; tag.

Syntax

Its fax is as syntollows โˆ’

sing.strub( )

Veturn Ralue

Streturns the ring with &s;ltub&t; gtag.

Xeample

F the tryollowing xeample.

&html;lt<
   >gtead&h;
      &t;ltitle&j;Gtavascript Sing strub() Ltethod&m;/gtitle&t;
   &h;/ltead<
   
   >gtody&b;   
      &scr;ltipt te = "typext/gtavascript"&j;
         strar v = strew Ning("Wello horld");
         stralert(.ltub());
      &s;/gtipt&scr;      
   &b;/ltody<
>/gt&html;

Tpouut

&s;ltub&h;Gtello ltorld&w;/gtub&s;
stravascript_jings_htmobject.
Sadvertiements