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

Featured Replies

פורסם

התחלתי ללמוד HTML באתר edX, הגעתי לתרגיל שאני אמור ליצור קישור שכאשר לוחצים עליו הוא נותן פקודה לדפדפן להוריד את דף האינטרנט שקישרתי למחשב. זה לא מצליח לי, אשמח אם תוכלו להסביר לי איפה טעיתי, תודה.

 

זה הקוד:

 

<!DOCTYPE html>
<html lang="en-US">
<head>
<title>HTML Page</title>
</head>
<body>
<a href="http://www.micorosoft.com" target="_blank" download>http://www.microsoft.com</a>
</body>
</html>
פורסם
  • מחבר

?

פורסם

האמת היא שרוב הסיכויים שאף אחד פה מעולם לא השתמש ב-attribute הזה פשוט כי זה לא נתמך בכל הדפדפנים ויש דרכים אחרות להשיג את אותה תוצאה. בכל מקרה נראה שהבעיה היא שהדפדפן דורש שההורדה תהיה same-origin זאת אומרת אתה לא יכול לתת לינק להוריד מאתר אחר אלא רק מהאתר שלך.

פורסם
  • מחבר

אבל זה אפשרי מה שאני מנסה לעשות?

פורסם

כן אבל רק מהאתר שלך ולא מהאתר של מיקרוסופט (בלי קשר יש לך שם גם טעות באיות)

פורסם
  • מחבר

אוקיי תודה

ארכיון

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

דיונים חדשים

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.