برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> </style> </head> <body> <h1>entegal be sait</h1> <button onclick="Address()">vurud be sait</button> </form> <script> let Address=()=>{ let adres=prompt('lotfan adres ra vared konid:'); url='http://'+adres; window.location.href=url; } </script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> body{ display: flex; justify-content: center; } </style> </head> <body id="bod"> <form action="#"> <input type="text" id="web" value="https://"> <input type="button" value="btn" onclick="address()"> </form> <script> let address = () => { let web_address = document.getElementById("web").value; window.open(web_address); } </script> </body> </html>
<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>انتقال به وبسایت</title> <script> function redirectToWebsite() { const url = document.getElementById('website-input').value; # Checking whether the URL is valid or not if (url) { # If the URL does not start with http: // or https: //, add it if (!url.startsWith('http://') && !url.startsWith('https://')) { alert("لطفاً URL را با http:# Or start https: //. "); return; } # Transfer to the entered URL. window.location.href = url; } else { alert("لطفاً یک آدرس وبسایت وارد کنید."); } } </script> </head> <body> <h1>انتقال به وبسایت</h1> <input type="text" id="website-input" placeholder="آدرس وبسایت را وارد کنید"> <button onclick="redirectToWebsite()">انتقال</button> </body> </html>
Submitting answers is currently unavailable.
Write a program that receives 2 numeric value from the input and stores in variables A and B. Then move the values of these two variables (the value of variable A is to be stored within B and the value of variable B is saved within a)
Write a function that receives a number and specifies or not to be paired by returning TRUE or FALSE
Write a program that receives the square side length from the input and calculates its area of square area = a side of its own = a side of a power 2.
Write a program that receives students' scores and names and prints from the highest to the lowest score, respectively
Write a function that receives a username and if it was a character except the lowercase English letters, FALSE and otherwise TRUE
Write a program where the user can enter the number of one -digit number and then all the numbers that can print the construction with the entered digits for example: Input: 1 input: 2 input: End 12 21 11 22
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.