---
title: "Discussion on \"Handling programmatic \"Copy to Clipboard\" on DuckDuckGo Android browser\" | Hashnode"
description: "Discussion on \"Handling programmatic \"Copy to Clipboard\" on DuckDuckGo Android browser\". How to use the execCommand workaround to bypass the NotAllowedError on DuckDuckGo Android browser when using the async Clipboard API"
url: "https://hashnode.com/posts/programmatic-copy-to-clipboard-duckduckgo-android/63b59064f4124453e080ed6d"
---

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

Discussion

# [Handling programmatic "Copy to Clipboard" on DuckDuckGo Android browser](https://rajeeves.hashnode.dev/programmatic-copy-to-clipboard-duckduckgo-android?utm_source=hashnode&utm_medium=feed)

How to use the execCommand workaround to bypass the NotAllowedError on DuckDuckGo Android browser when using the async Clipboard API

Jan 4, 2023 · 5 min read · rajeeves.hashnode.dev  
Updated Jun 3  
Read the article

-   [#duckduckgo](https://hashnode.com/tag/duckduckgo)
-   [#clipboard](https://hashnode.com/tag/clipboard)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Rajeev R. Sharma](https://hashnode.com/@rajeeves)

@rajeeves

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

Developer at large. Breaking down complexity, one line of code at a time.

I build end-to-end apps in JavaScript with various frameworks and libraries, sharing detailed write-ups along the way. Lately, I've been experimenting with simple AI tools, while Nuxt remains my go-to fullstack framework. Occasionally, I dive into fun side projects, like crafting simple games with Python Turtle.

## Responses 2

Markdown supported · ⌘↵ to post

[Lean Bilokapic](https://hashnode.com/@magoxxii)

[Apr 7, 2023](https://hashnode.com/posts/programmatic-copy-to-clipboard-duckduckgo-android/63b59064f4124453e080ed6d/comment/643035b37d188b3a2bde9b98)

Hello, I came here for same reason, thanks for suck a great answer. hope ddg fix this soon. meanwhile I will show this to my supervisor so he decided how we will procced! =) saludos!

[Lean Bilokapic](https://hashnode.com/@magoxxii)

[Apr 7, 2023](https://hashnode.com/posts/programmatic-copy-to-clipboard-duckduckgo-android/63b59064f4124453e080ed6d/comment/643035b37d188b3a2bde9b98#reply-6430364919dd2f34ad7fc5f9)

function copyClipboard(target) { var copyText = document.getElementById(target).innerHTML; navigator.clipboard.writeText(copyText);

[Rajeev R. Sharma](https://hashnode.com/@rajeeves)

[Apr 7, 2023](https://hashnode.com/posts/programmatic-copy-to-clipboard-duckduckgo-android/63b59064f4124453e080ed6d/comment/643035b37d188b3a2bde9b98#reply-64303e9719dd2f34ad7fc7aa)

Awesome. I'm so happy to hear that this article helped you. 👏 This is the first time where one of my articles has helped someone in their day-to-day work since I created this blog. Hopefully it won't be the last 🤞
