تفعيل الإكمال التلقائي
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
بصرف النظر عن تخصيص الألوان أو الخطوط أو نمط الرابط في لوحة التحكم،
من الممكن التأثير على شكل ومظهر وسلوك
مربع البحث عبر سمات HTML المخصصة.
يتيح لك هذا الإجراء إلغاء بعض الإعدادات العامة من "لوحة التحكّم".
وهذه الميزة مفيدة بشكل خاص عندما تريد وضع مربع بحث واحد (مثل مربّع في الصفحة الرئيسية)
بشكل مختلف عن المواقع الأخرى على الموقع.
على سبيل المثال، يمكنك تمكين أو تعطيل ميزة الإكمال التلقائي باستخدام
enableAutoComplete
. بشكل افتراضي، يتم تعيينها على
true
في حال تفعيل الإكمال التلقائي في "لوحة التحكّم" من
بتبديل القيمة إلى false
، يمكنك التحكّم في طريقة ظهور العنصر
يتصرف.
<!-- أدخِل معرّف محرك البحث المبرمَج هنا -->
<script async src="https://cse.google.com/cse.js?cx=017643444788069204610:4gvhea_mvga"></script>
<!-- حاول تبديل قيمة السمة إلى "true" أو "خطأ" -->
<div class="gcse-search" enableAutoComplete="true"></div>
ملاحظة: قد تستغرق عمليات الإكمال التلقائي التي تم تفعيلها أو إضافتها مؤخرًا عدة ساعات قبل الظهور.
يتوفّر العديد من الخيارات الإضافية. يمكنك القراءة عن مربّعات بحث أخرى
خيارات التخصيص في
قسم واجهة برمجة التطبيقات Programmable Search Element Control API
لمزيد من المعلومات حول عمليات الإكمال التلقائي، يُرجى الاطّلاع على مقالة مركز المساعدة حول الإكمال التلقائي.
التالي...
يمكنك المتابعة إلى تخصيص نتائج البحث.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eCustomize the search box's look, feel, and behavior using custom HTML attributes, overriding general Control Panel settings.\u003c/p\u003e\n"],["\u003cp\u003eControl individual search boxes differently, like enabling or disabling autocomplete for specific instances using the \u003ccode\u003eenableAutoComplete\u003c/code\u003e attribute.\u003c/p\u003e\n"],["\u003cp\u003eExplore additional search box customization options in the Programmable Search Element Control API documentation.\u003c/p\u003e\n"],["\u003cp\u003eNewly enabled or added autocompletions may require several hours to become visible.\u003c/p\u003e\n"],["\u003cp\u003eLearn more about Autocompletions in the dedicated Help Center article.\u003c/p\u003e\n"]]],[],null,["# Enabling Autocomplete\n\nApart from customizing colors, fonts or link style in the [Control Panel](https://programmablesearchengine.google.com),\nit is possible to influence the look and feel and the behavior of\nthe search box via custom HTML attributes.\n\nThis allows you to override some of the general settings from Control Panel.\nIt is especially useful when you want one search box (e.g. one on the homepage)\nto behave differently than other ones on the site.\nFor example, you can enable or disable autocomplete feature using\n`enableAutoComplete` attribute. By default, it is set to\n`true` if autocomplete is enabled in the Control Panel. By\nswitching the value to `false` you can control how the element\nbehaves. \n\\\u003c!-- Insert your own Programmable Search Engine ID here --\\\u003e \\\u003cscript async src=\"https://cse.google.com/cse.js?cx=017643444788069204610:4gvhea_mvga\"\\\u003e\\\u003c/script\\\u003e \\\u003c!-- Try switching the attribute value to \"true\" or \"false\" --\\\u003e \n\n \u003cdiv class=\"gcse-search\" enableAutoComplete=\"true\"\u003e\u003c/div\u003e\n\nNote: Newly enabled or added autocompletions may take several hours to appear.\n\nThere are many more options available. You can read about other search box\ncustomization options in\n[Programmable Search Element Control API](/custom-search/docs/element#supported_attributes) section.\n\nFor more information on Autocompletions, please see the [Help Center article](https://support.google.com/programmable-search/answer/2631081) on Autocomplete.\n\nNext...\n-------\n\nContinue to [Customizing search results](/custom-search/docs/tutorial/customizingresults)."]]