Free HTML Script Codes
Loes Knetsch ©
It’s amazing what you can do with a little creative HTML writing on your website. Here are some great HTML Script codes. And you may use them freely. Codes for alerts, don’t copy, copyright and highlight.
Welcome your visitor to your website
You just clicked OK on this message from me “Hey hello, how nice to see you! I wish you a very nice time surfing my website! Kind regards, Loes”
Here is the code to make this alert message.
<script>alert("Hey hello, how nice to see you! I wish you a very nice time surfing my website! Kind regards, Loes")</script>
Do not copy my content!
This is just a warning to your visitors, it doesn’t prevent people from copying, but it might help. Only the copy function on the right mouse click will be disabled.
<script>function click(){if (event.button==2){alert('Do not copy my content!')}}document.onmousedown=click</script>
HTML code current year copyright
When you click on the little arrow next to the Copyright, a drop-down text will appear
Copyright © 2018.
– by Loes Knetsch. All Rights Reserved.
All content and graphics have been collected with care
<details> <summary>Copyright © 2018.</summary>- by Loes Knetsch. All Rights Reserved. All content and graphics have been collected with care. </details>
I have changed the text into “Meet the Writer”. You can check this on top of my sidebar. You can even add a clickable image to this drop-down.
Displaying Designers on your website
This looks very nice on your Privacy Policy, your Affiliate disclaimer or your About me page.
Designed by Loes Knetsch.Country: The Netherlands
workathomefuture.com
Member of Wealthy Affiliate [2014]
<address>Designed by <a href="mailto:youremailaddress">your name</a>. Country: Your Country <a href="your URL">Your website</a> <a href="Any link">and anything else you want to display</a></address>
Highlight your text
Sometimes you would like it when your text jumps out. Highlight your text now.
<span style="background-color: #ffff00;">your text</span>
Change the highlight color
<span style="background-color: #99ff66;">your text</span>
How to copy these codes?
Select and use Ctrl+C and for pasting use Ctrl + V
Other interesting free HTML script codes
- HTML Codes
- HTML Codes