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

עזרה עם פקודה בjavascript (פקודה חדשה) נערך בסוף הדף

Featured Replies

פורסם

שלום לכולם

כשאני כותב סקריפט ואני משתמש ב document.write והפקודה נמצאת בין התגים <script> ל </script> אז הכל בסדר ובאמת נוצרת לי הדפסה בדף הנוכחי .

לעומת זאת כשאני כותב אותה (document.write) בתוך פונקצייה ומפעיל נגיד עם onclick אז הדפדפן קופץ דף אחד קדימה ואז מבצע את הפקודה.

איך אני מונע ממנו לקפוץ קדימה ז"א איך אני יוצר מצב כמו שהפקודה (document.write) נמצאת מחוץ לפונקציות .תודה :xyxthumbs:

פורסם
  • מחבר

כשאני כותב ככה:

<html>

<title>shoot</title>

<head>

<SCRIPT LANGUAGE="JavaScript">

<!--

document.write("heloo");

//-->

</SCRIPT>

</head>

<body bgcolor=#FF8080>

</body>

</html>

ככה הכל בסדר

אבל

ככה

<html>

<title>shoot</title>

<head>

<SCRIPT LANGUAGE="JavaScript">

<!--

function out()

{

document.write("heloo");

}

//-->

</SCRIPT>

</head>

<body bgcolor=#FF8080>

<center><input type=button value="" onclick="out();">

</center>

</body>

</html>

זה מקפיץ לי לחלון אחר את המלל מה עושים?

פורסם
<html>
<title>shoot</title>
<head>
<script type="text/javascript">
<!--
function out(){
document.body.innerHTML = "hello";
}
//-->
</script>
</head>
<body bgcolor=#FF8080>
<center>
<input type=button value="" onclick="out();">
</center>
</body>
</html>

פורסם
  • מחבר

תודה רבה רבה אחי עזרת לי מאוד :yelclap:

פורסם
  • מחבר

תודה רבה. :hi::xyxthumbs:

שאלה חדשה:

איך אני מוריד את הscrollbars ב דף הנוכחי שלי?

ארכיון

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

דיונים חדשים

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.