Response title
This is preview!




$(document).ready(function() {
if (!$.cookie("urlCookie")) {
var url = document.referrer;
var match = url.indexOf("localhost");
if (match != -1) {
$.cookie("urlCookie", url);
$("#title").html(url);
}
} else {
$("#title").html($.cookie("urlCookie"));
}
});<h1 id="title"></h1>if (!$p.cookie("urlCookie")) {
var url = document.referrer;
var match = url.indexOf("?ref");
if (match != -1) {
$p.cookie("urlCookie", url);
$p("#title").show();
}
} else {
$("#title").html($.cookie("urlCookie", url));
}
<h1 style="display:none;" id="title">test</h1>
if (!$.cookie("urlCookie")) {© 2012 jQuery Foundation
Sponsored by
and others.
