---
title: "Discussion on \"政府共通平台之搜尋關鍵字HighLight\" | Hashnode"
description: "Discussion on \"政府共通平台之搜尋關鍵字HighLight\". common-platform-of-the-government-search-keyword-highlight\n問題為：查詢結果關鍵字沒有被標示出來，如下圖所示。\n\n解決辦法\n1. 將下列 JavaScript 加入 <head></head> 中\n2. 再將下列 JavaScript 加入 <body></body> 的最底部\nhighlight 傳遞的三個參數分別為：\n\ndocument.getElementById(‘inputText’)：抓取id為inputText的div，in..."
url: "https://hashnode.com/posts/highlight/69dc767c63a316e2c3ab6991"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [政府共通平台之搜尋關鍵字HighLight](https://blog.yu.money/highlight?utm_source=hashnode&utm_medium=feed)

common-platform-of-the-government-search-keyword-highlight 問題為：查詢結果關鍵字沒有被標示出來，如下圖所示。 解決辦法 1. 將下列 JavaScript 加入 <head></head> 中 2. 再將下列 JavaScript 加入 <body></body> 的最底部 highlight 傳遞的三個參數分別為： document.getElementById(‘inputText’)：抓取id為inputText的div，in...

Feb 27, 2017 · 1 min read · blog.yu.money  
Read the article

## Written by

[Money Yu](https://hashnode.com/@moneyyu)

@moneyyu

  
[View profile](https://hashnode.com/@moneyyu)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
