Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

    Sign In
    • Home
    • Using Uberall / Uberallの使用
    • Locator + Pages / ロケーター+ページ

    ロケーター&ページで要素の名称を変更するにはどうすればよいですか?

    JavaScript で要素の名称を置き換える

    Contact Us

    If you still have questions or prefer to get help directly from an agent, please submit a request.
    We’ll get back to you as soon as possible.

    Please fill out the contact form below and we will reply as soon as possible.

    Japanese
    FR French
    IT Italian
    JP Japanese
    DE German
    US English (US)
    ES Spanish
    • Getting Started / はじめに
      Configuration and Connection Guides / 設定と接続ガイド New here / 初めての方
    • Uberall Academy and Learning Resources / Uberall アカデミーと学習リソース
      Learning Resources - Best Practices / 学習リソース - ベストプラクティス Uberall Academy / Uberall アカデミー
    • Using Uberall / Uberallの使用
      Mobile App / モバイルアプリ Review Management / レビュー管理 Social / ソーシャル Platform Status and General FAQs / プラットフォーム状況とよくある質問 Locator + Pages / ロケーター+ページ Messages / メッセージ What's New / 新着情報 AI / AI Homepage / ホームページ The Dashboard / ダッシュボード Location Hub / ロケーションハブ Analytics / アナリティクス Directories / ディレクトリ
    • Org Settings / 組織設定
      Users / ユーザー API Keys / APIキー Webhooks / ウェブフック Billing / 請求
    • Connecting Tools / 接続ツール
      API
    + More

    Table of Contents

    免責事項 JavaScript でメールアドレスを置き換える スクリプト 例 他の要素に適用する テキストを変更する

    この記事では、メールアドレスを例に、ロケーションページ上の要素の名称を置き換える方法を説明します。

    免責事項

    以下の方法は、特定のバージョンのロケーター&ページで作成・テストされたものです。この方法は将来的にサポートされなくなる可能性があり、サポートを保証するものではありませんのでご注意ください。

    JavaScript でメールアドレスを置き換える

    この方法では、JavaScript を使用して要素の名称をあらかじめ定義したテキストに置き換えます。この例では、メールアドレスを汎用テキスト「Contact us」に置き換えます。

    スクリプト

    window.setInterval(function() {
        Array.from(document.getElementsByClassName('ubsf_details-email')).forEach(function(el) {
            var innerLink = el.querySelectorAll('a')[0];
            innerLink.text = 'Contact us';
        });
    }, 500);

    上記のスクリプトは、要素 'ubsf_details-email' を選択し、その innerLink.text を目的の入力内容(この例では「Contact us」)に置き換えます。

    例

    JavaScript を公開した Fiddle:https://jsfiddle.net/n81r2dxv/1/

    JavaScript をアップロードした Fiddle:https://jsfiddle.net/n81r2dxv/2/


    他の要素に適用する

    上記の考え方は、他の要素にも適用できます。その場合は、('ubsf_details-email') (document.getElementsByClassName 内)を、テキストを編集したい要素に置き換えてください。

    テキストを変更する

    使用するテキストは、次の値を編集することで変更できます:innerLink.text.


    次に読む: ロケーター&ページ - JavaScript でフィルターを事前選択する

    要素 名前変更

    Was this article helpful?

    Yes
    No
    Give feedback about this article

    Related Articles

    • 場所の名前はどのように構成すればよいですか?
    • セルフサービス ロケーター&ページに関するよくある質問
    • 埋め込み型ロケーター+ページ(セルフサービス)とは?
    • CSS によるロケーター+ページのカスタマイズ
    • ロケーター&ページのフィルター
     

    Copyright 2026 – uberall.

    Expand