עבור לתוכן
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.

רענון דף אוטומטי כל פרק זמן אקראי ב-HTML ו-javascript.

Featured Replies

פורסם

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

זה מה שיצא לי משילוב של כל מיני קודים שמצאתי דרך גוגל אבל זה לא עובד לי ואני לא מבין בזה מי יודע מה...

הקוד הזה נמצא בתגית ה-head


<script type="javascript">

function get_random()
{

var ranNum= Math.floor(Math.random()*6)+7;
document.write('<META HTTP-EQUIV="REFRESH" CONTENT='+'"'+ranNum+'">');

}

get_random();
</script>

בקיצור מה כאן אני עושה לא בסדר?

פורסם

די פשוט, המאפיין TYPE בתגית SCRIPT לא תקין.

תשנה ל-text/javascript והקוד יעבוד... :P

ארכיון

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

דיונים חדשים

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.