Notification texts go here Contact Us Buy Now!

Welcome To Tajamal Tech

Hi Dear :Read my guides in which I've shared my knowledge and experiences. I will keep updating my website with great information for all of you.

  See More Tutorials Here →
Posts

Code box Inner Button

Estimated read time: 6 min
1st code paste (b:skin) just up.
HTML

<!--[https://alamin557.blogspot.com/]--> .mollaarea { position: relative; display: inline-block; border: 1px solid #ccc; background-color: white; border-radius: 10px; padding: 20px; } .mollaarea textarea { box-sizing: border-box; background-color: white; height: 200px; resize: none; border: none; outline: none; padding: 10px; font-size: 16px; } .mollaarea button { position: absolute; padding: 5px 10px; font-size: 15px; color: #5784f5; right: 10px; top:10px; border: 1px solid #5784f5; border-radius: 10px; cursor: pointer; background-color: #fff; } .mollaarea button:active { background-color: #1453f1; color: #fff; }

2nd code paste < / body> just up.
HTML 2

<script> function copyhtml() { const Text = document.querySelector("#htmlText"); const btnText = document.querySelector("#htmlBtn"); Text.select(); document.execCommand("copy"); btnText.textContent = "Copied"; setTimeout(function(){ btnText.textContent = "Copy"; }, 5000); } </script>

3rd code paste go to post paste after(code paste)
HTML 3

<div><div class="mollaarea"> <textarea id="htmlText"> <!-- paste here --> </textarea> <button onclick="copyhtml()"> <span id="htmlBtn">Copy </span> </button> </div></div>

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.