Copy to clipboard button on website not working [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I used the code from this website:
http://www.htmlgoodies.com/beyond/javascript/article.php/3458851
and modified the code to fit what I need:
<div align="center">
<font size="5"><b><SPAN ID="copytext">[show_ip]</SPAN></b></font>
<br />
<TEXTAREA ID="holdtext" STYLE="display:none;"></TEXTAREA>
<BUTTON onClick="ClipBoard();">Copy to Clipboard</BUTTON>
</div>
The code doesn't give any errors and it formats correctly but it's just not copying to the clipboard.
I am putting this in a TEXT WIDGET on Wordpress so I am limited on what I can do.
Anyone have any suggestions?
Thank you!

The site you copied from, in the link, also has the JS code for ClipBoard(); It's a little ways down the page. Looks like you missed it.
<SCRIPT LANGUAGE="JavaScript">
function ClipBoard()
{
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
}
</SCRIPT>
^^ From the site you linked.

Related

HTML Bottom align [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
Im trying to align my image to Top and Bot, but it is not aligning to bottom.
My Code :
style='position:absulte;margin-top:-1px;width:80%;height:95%;bottom:10%'
(Bottom:10% is not working)
I have tried another solving topics on StackOverflow, none of them worked.
I found the solution by changing style
Previus code :
style='position:absulte;margin-top:-1px;width:80%;height:95%;bottom:10%'
New code:
style='width:900px;height:600px'

contenteditable= false not working [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I have a div that is editable for unknown reason (I don't want it to be editable) and even if i try contenteditable="false" it doesn't solve the problem.
I thought maybe it has to do with some plugins conflict, but disabling any wordpress plugins wouldn't help. i use CKeditor so i thought it might cause the problem, but disabling it also doesn't solve the problem.
Any Ideas?
Stupid me, i had a -webkit-user-modify: read-write; on this class which made it editable. now i need to find out why did i add this :)

need a little assistance with positioning of my <li>Home</li> line of code on my page [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
i have been following a tutorial perfectly, but for some reason, my code isnt producing what is displayed on the video. i have this html document im working on, http://jsbin.com/pizaje/1/edit?html,output
and my Home is in the wrong place, as shown in these images. mine has the word "Home" above the "BBC UK" news header
but it really has to have the word "Home" underneath the "BBC UK" and i don't know what i have done or what to do to fix?
is there any assistance anyone is able to give me ?
Your break in code is a class but the style in css is an id
change the css to the class like following
.break {
clear: both;
}

HTML Footer on my website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I'm working on a website: Click here
On every page I made a footer. But I can't get the footer centered and locked on the bottom of the page. Hope some of you guys can help me. I already tried some stuff I found on StackOverflow but it won't work....
Regards,
Matthijs
The class you are using on the div (.grid_4) has a float:left value. If you get rid of this float and you add text-align: center on the div, the content is centered.
For a sticky footer, check out this link

Can you use id and href at the same time? [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
I'm obviously a newbie and I'm running into a problem when I'm trying to turn text into a link while also naming it with an id.
I'm currently using:
<p id="you" You</p>
Using google.com to test.
I haven't been able to get the link working though.
I'm trying to ultimately make a button called You where I'll add all the CSS to id="you" but I want the You word to go to a link.
Can I not write it this way? Suggestions?
Your opening paragraph tag is unclosed.
<p id="you">You</p>
Alternatively, if you don't need the block styling the paragraph gives, you can just go with the following.
<a id="you" href="www.google.com">You</a>
Sure: You
You
Do you mean something like this?
Yes, it works just fine.
you