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

הסמן יופיע בתוך החיפוש של גוגל עם פתיחת העמוד

Featured Replies

פורסם

שלום הוספתי לדף html את קוד החיפוש של גוגל :

<!-- Search Google -->

<center>

<FORM method=GET action="http://www.google.com/search">

<TABLE bgcolor="#FFFFFF"><tr><td>

<A HREF="http://www.google.com/">

<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google" align="absmiddle"></A>

<INPUT TYPE=text name=q size=31 maxlength=255 value="">

<INPUT TYPE=hidden name=hl value="en">

<INPUT type=submit name=btnG VALUE="Google Search">

</td></tr></TABLE>

</FORM>

</center>

<!-- Search Google -->

איך אפשר עם פתיחת דף הhtml שהסמן יופיע כברירת מחדל בתוך תיבת החיפוש ?

( במקום שאני אשתמש עם העכבר ויניח אותו בתיבת החיפוש כדי להקליד משהו...)

תודה מראש,

דודו.

פורסם

מבט חטוף על ה-source של www.google.com מראה שזה נעשה באמצעות Javascript.

הנה כמה קטעים מהקוד:

<script defer>
<!--
function sf(){document.f.q.focus();}
-->
</script>

<body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf()">

<form action="/search" name=f><input maxlength=2048 name=q size=55 title="Google Search" value="">

בגדול, נתנו שם לתיבת הטקסט (q) ולטופס שבו היא נמצאת (f), והגדירו פונקציה (sf) שעושה פוקוס לתיבה הזו.

בטעינה של הדף (onload) קוראים ל-sf.

פורסם
  • מחבר

אני לא מפקפק לרגע במה שאתה טוען...

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

מישהו יכול לעזור ?

אני מדבר על הקוד הבא :

http://www.google.com/intl/iw/searchcode.html

פורסם

אתה מקבל הערה כלשהי?

ארכיון

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

דיונים חדשים

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.