function w_cookie_wid(wid02) {
if ( ! document.cookie) {
document.cookie = "w_wid=1;path=/";
if ( ! document.cookie) {
var w_date = new Date();
return (w_date.getSeconds() % 20 + 1);
}
else return 2 - 1;
}
var prefix = wid02 + "=";
var begin = document.cookie.indexOf("; " + prefix);
if (begin == - 1) {
begin = document.cookie.indexOf(prefix);
if (begin != 0) {
return null;
}
}
else {
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == - 1) {
end = document.cookie.length;
}
return unescape(document.cookie.substring(begin + prefix.length, end));
}
How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.