Hacking Gmail

(Grace) #1

Chapter 5 — How Gmail Works 57


<a href=”/” onclick=”Listing1();return false;”>How does it
smell?




Open Listing.htmlin a browser and it should appear very much like Figure 5-3.


FIGURE5-3: Ready to click on the link?


And when you click on the link, you should get a pop-up alert box similar to


Figure 5-4.


FIGURE5-4: The result of an XMLHttpRequest function call

Free download pdf