TEST#9
\(\href{javascript:var txt=prompt('Do you really want to log out ? (yes/no)');if (txt === 'yes'){window.open("/session/logout","_self");}else{alert("Command has been TERMINATED !");}}{\sf \ Click \ here \ to \ Log\ out}\)
\(\color{red}{\sf Click}~\href{javascript:var a=prompt('Enter your name');alert(a + ', The current date and time is ' + Date())}{\sf Here}\color{red}{\sf~to~know~the~current~date~and~time}\)
\(\large\sf Celsius~to~fahrenhite~converter~\href{javascript:function toCelsius(f){return (f * 1.8)+32;}var x=prompt('Enter temperature in celsius scale');var num1 = parseInt(x);alert('Temperature in fahrenhite scale will be ' + toCelsius(num1) +'°');}{Click~Here}\)
\(\large\sf Fahrenhite~to~celsius~converter~\href{javascript:function toCelsius(f){return (5/9) * (f-32);}var x=prompt('Enter temperature in fahrenhite scale');var num1 = parseInt(x);alert('Temperature in celsius scale will be ' + toCelsius(num1) + '°');}{Click~Here}\)
\(\huge \sf Celsius~to~Kelvin~converter~\href{javascript:function myFunction(a, b){return a+b;}var x=prompt('Enter the temperature in celcius scale','100');var num1 = parseInt(x);alert('Temperature in Kelvin scale will be ' + myFunction(num1,273)+'K');}{\sf Click~Here}\)
\(\href{javascript:var txt=prompt('Enter your name !','Abhisar');if (txt.length >= 7){alert("You have a GOOD name !");}else{alert("You have a BAD name !");}}{\sf Click~here~to~check~how~good~your~name~is~?}\)
Check them out ;)
this is stunning!!
Join our real-time social learning platform and learn together with your friends!