Web Development with jQuery®

(Elliott) #1

(^18) ❘ CHAPTER 1 INTRODUCTION TO JQUERY


Pumpkin

Open Picture




Then in the externally loaded JavaScript you do something like the following:
$(document).ready(
function()
{
$('a#examplePumpkin').click(
function(event)
{
event.preventDefault();
window.open(
'pumpkin.jpg',
'Pumpkin',
'scrollbars=no,width=300,height=280,resizable=yes'
);
}
);
}
);
With the preceding bits of code, you get the results that you see in Figure 1-3.

FIGURE 1-3


http://www.it-ebooks.info

Free download pdf