js.do
Open in
urlscan Pro
3.234.191.154
Public Scan
URL:
https://js.do/
Submission: On March 25 via api from US — Scanned from DE
Submission: On March 25 via api from US — Scanned from DE
Form analysis
2 forms found in the DOM<form class="form-inline" onsubmit="chklogin();return(false);"> Username: <input class="input-medium" type="text" id="login_user_username" name="username">
<br>
<br> Password: <input class="input-medium" type="password" id="login_user_password" name="password">
<input type="submit" value="Login" class="btn btn-small btn-primary"> New to <b>js.do</b>? <a href="javascript:;" onclick="signup_show()"><b>Sign-up</b></a>, it's free!
</form>
<form>
<b>JS.do - Register now to save and manage your JavaScript code:</b>
<br>
<br>
<br>
<table>
<tbody>
<tr>
<td>Username:</td>
<td><input type="text" id="signup_user_username"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="text" id="signup_user_password"></td>
</tr>
<tr>
<td>Password (confirm):</td>
<td><input type="text" id="signup_user_password_confirm"></td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" id="signup_user_email"></td>
</tr>
<tr>
<td></td>
<td><input type="button" value="Sign-up" onclick="signup()" class="btn btn-small btn-primary"></td>
</tr>
</tbody>
</table>
</form>
Text Content
Welcome | Logout login or register (free!) JS.DO ONLINE JAVASCRIPT EDITOR "Edit your code online. Simple, light and fast!" Code address: https://js.do/code/ Description: × Login to save your code and edit it later and manage your code collection: Username: Password: New to js.do? Sign-up, it's free! JS.do - Register now to save and manage your JavaScript code: Username: Password: Password (confirm): Email: Already have an account ? Sign-in Fullscreen Load code samples Run code Save Save update Save as a new js Add framework jQuery 3.7.1 Bootstrap 3.2.0 (CSS) Bootstrap 3.2.0(JS) Bootstrap 2.3.2 (CSS) Bootstrap 2.3.2 (JS) Processing.js Three.js Font Awesome 4.7 (icons) Delete Create new code JavaScript xxxxxxxxxx 51 1 <script> 2 3 document.write("<b>LESSON 1: PRINT HELLO WORLD USING VARIABLES</b><br><br>"); 4 5 // To start we will create 2 variables: 6 var variable1 = 'Hello '; 7 var variable2 = 'World!<br><br>'; // <br> means line break in html 8 9 // Create a third variable by adding both variables: 10 var final_text = variable1 + variable2; 11 12 // Print the final result: 13 document.write(final_text); 14 15 document.write("<b>LESSON 2: SOLVE AN EQUATION</b><br><br>"); 16 17 var n = 9; 18 var x = n*n; 19 document.write("Result of n*n=" + x); 20 21 document.write("<br><br><b>LESSON 3: PRINT NUMBERS FROM 1 TO 10</b><br><br>"); 22 23 // Create a loop of 10 elements. 24 // Variable "i" starts with value 1 and while i<=10 it will increment 1 (i=i+1) 25 for (var i=1; i<=10; i=i+1) { 26 27 document.write(i); // Print the current "i" number 28 29 // Print a comma followed by a space if i < 10 30 if (i<10) { 31 document.write(", "); 32 } 33 } 34 35 function show_random_number() { 36 37 var random_number = Math.random(); // generate random number between 0 and 1 38 alert(random_number); // show popup with a random number 39 40 } 41 42 </script> 43 44 <p style="color: green"> 45 The content above was created with JavaScript.<br> 46 This content is created with <b>HTML</b>.<br> 47 You can edit JavaScript and HTML in the left part of the page 48 and click "<b>Run code</b>" to view results in the right part of the page. 49 </p> 50 <b>LESSON 4: CALL A JAVASCRIPT FUNCTION:</b> 51 <input type=button onClick="show_random_number()" value="Generate random number"> || Result Select sample code to view and run Basic samples * Hello world * Calculator * jQuery Graphics * Canvas Triangle * Labyrinth * 3D Sombrero equation JavaScript APIs * Twitter API * Geolocation API * Web Fonts created by Rodrigo Siqueira js.do | about | blog | contact This code's address: Author: Creation date: