Overriding the browser's default link behavior


show more Overriding the browser's default link behavior provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Photo Gallery with jQuery and Dreamweaver show less
please wait ...

Overriding the browser's default link behavior

Now, I am going to want to edit my JavaScript file in a separate window, in a separate text editor, so we can see Dreamweaver in the background. So I am going to close that. In the index file, I am going to switch over to Code view. I am going to move my anchor tag code up here to the very top, so I can see it. I am going to switch back out into my OS, and I am going to open gallery.js in the text editor. My text editor of choice is Coda, and you can edit this JavaScript file in any HTML editor, or in Dreamweaver.

So, I want to edit my script in a separate window in a separate application, so I can see the code in the background of what I'm actually going to be targeting with my JavaScript and jQuery statements. So, inside of our JavaScript document, let's start by adding our document ready function. We will start with a Dollar sign, which is jQuery's way of initiating the functions in the jQuery file we downloaded. Type document. Outside of the parentheses, we will type ready....

Overriding the browser's default link behavior
Video duration: 5m 26s 1h 55m Intermediate

Viewers:

Overriding the browser's default link behavior provides you with in-depth training on Developer. Taught by Chris Converse as part of the Create an Interactive Photo Gallery with jQuery and Dreamweaver

please wait ...