Skip to main content

Javascript: What is it and where does it go?

For pretty much my whole blogging journey I've been working on coding designs for my sites. CSS was my favorite and HTML is bearable, but Javascript... Oh, the dreaded Javascript...

I could never get Javascript down. I couldn't write my own codes or even make the ones I got off the web work. And I never understood why. So I've created this post today to help those of you who may be struggling as well.


What is it?

Javascipt is the most popular programming language. Like, ever. It can change HTML content, attributes, CSS styles, and much, much more. It makes web pages interactive and can be used in non-web based environments, such as PDFs and desktop widgets. [1]

If you'd like to learn more about Javascript, like who created it and the many things it can do, head on over here. :)

The standard Javascript code:

<script type='text/javascript'>
//<![CDATA[
Your JavaScript coding here
//]]>
</script>
The code above is very important when it comes to adding your Javascript into your Blogger template. If you just slap your code into your template without using the script above, it won't be read properly and could do some terrifying things to your blog. So be careful when implementing Javascript and always make sure you have this code surrounding your hard work.

How to implement it:

Add your code before the </head> tag

How to get there

  1. Choose the blog you'd like to add your Javascript to.
  2. Choose Template then click "Edit HTML".
  3. Paste your code above the </head> tag (if you can't find it, use Ctrl + F).

Add it into a HTML/Javascript gadget

Take your code, head on down to layout, and paste into the gadget. Make sure to save your changes!

As you can see, these steps are actually very simple, and don't require much effort at all. If you have any comments, questions or concerns, feel free to contact me. I love hearing from you guys. :)

xx Nicole Rose

Comments

Popular posts from this blog

The Best Experience in the History of Experiences

Last week, on September 13th, 2013, two amazing things happened. Niall Horan--of One Direction--turned 20! *sends glittery kisses into the wind* I didn't forget you, baby! I promise! I met up with the most amazing person that has ever come into existence . ^^^ *sniffles* Here is a photo of our good-bye hug. Kenz  added the glitter. ;) My family and I had to drive about three and half hours, to get to our meeting place--which was a beautiful Barnes and Noble full of amazingly exquisite  books [it was quite heavenly]. The whole trip there I was bubbling with excitement. Rocking in my seat, tugging at my hair, belting out the lyrics to any songs I knew when they blasted out of the speakers. I had a little brother to my left, a window to my right and a present in my lap--and a stuffed Pikachu at my feet. o.O Finally , we arrived at our destination. I cannot describe to you the feeling of walking up to that bookstore, and having a someone whom you haven't p...

silver linings

 a post inspired by this lovely photo. [ photo via pinterest ] sitting swinging singing head bowed arms hanging voice low thinking blinking shrinking gears turning eyes wide shoulders slumped where did it all go? * * * She doesn't want to look up, only for her eyes to find the dark and terrible surroundings she calls her world. She doesn't want to go back, to the dwelling where words were spoken and exchanged but never taken back. She doesn't want to sit there forever. But that seems like the best option right now. While she swings, she listens and thinks, sings and sinks, the only company she has is the rag doll under her fingertips. It looks worn--just like her. And torn--again, like her. And used--just. like. her. Yet loved--a foreign feeling that has been wasted. She lifts her head to look up at the dark sky, wishing the clouds would split apart and act merciless upon her. Instead, they seem as if to slowly zip open, lightl...

"it's complete"

[ photo via pinterest ] writing. exhaling words onto paper inhaling the smell of ink scribbling furiously shoulders tensing the pencil stops dead in its tracks words are hard writing ceases days pass by no words are exhaled no ink is inhaled the author is taking a break dreams occur inspiration is sparked writing begins again and it doesn't stop "it's complete" two words that mean so much sentences build paragraphs that build chapters that build a book that build a lesson, a story my lesson to you is || don't ever give up thanks for reading. <3 xoxo, Rose pinterest instagram bloglovin