עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

צריך עזרה אם js

Featured Replies

פורסם

זה אמור לקבל מחרוזת

ולבדוק אם יש

www.

וגם שיש לפחות עוד נקודה אחת

הבדיקה של www. עבד בסדר אבל שאני מוסיף את השניה זה מפסיק לעבוד לא עושה כלום

 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<script language="javascript">

var site=prompt("enter a website"," ");

if(site.indexOf("[url]www."[/url])<0)
{
document.write("1 incorrect website address");
}
else

{
if(site.lastindexOf(".")<4)
{
document.write("2 incorrect website address");
}
else

document.write("correct website address");
}


 
 

</script>
</body>
</html>

פורסם

אני יתחיל מלתת לך רמז:

capitalization

עכשיו בדברים כאלה באופן כללי, קודם כל תדפיס את הערך של הנקודה השניה (כלומר את התנאי השני), תיראה מה אתה מקבל ועל זה תלביש את התנאי. (זה כמובן אם יש לך בעיה, אל תעשה את זה תמיד).

בהצלחה.

פורסם
  • מחבר

site.lastindexOf(".")<

אני מבין שזה לא עובד

אבל אני לא יודע למה

צריך להיות רק O גדולה

פורסם
  • מחבר

O.K

i see it now

:) thx

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.