🍋మామిడి పువ్వుకి మాట వచ్చింది🍋
🐦కోకిల గొంతుకు కుత వచ్చింది🐦
🌿వేప కొమ్మకు పూత వచ్చింది🌿
🍯పసిడి బెల్లం తోడు వచ్చింది🍯
🌿🌾గుమ్మానికి పచ్చని తోరణము వచ్చింది🌾🌿
🌾🍒పండగ మన ముందరికి వచ్చింది🍒🌾
🌾మీకు మీ కుటుంబసభ్యులకు హేవిళంబి నామ ఉగాది శుభాకాంక్షలు!🌾
🍋మామిడి పువ్వుకి మాట వచ్చింది🍋
🐦కోకిల గొంతుకు కుత వచ్చింది🐦
🌿వేప కొమ్మకు పూత వచ్చింది🌿
🍯పసిడి బెల్లం తోడు వచ్చింది🍯
🌿🌾గుమ్మానికి పచ్చని తోరణము వచ్చింది🌾🌿
🌾🍒పండగ మన ముందరికి వచ్చింది🍒🌾
🌾మీకు మీ కుటుంబసభ్యులకు హేవిళంబి నామ ఉగాది శుభాకాంక్షలు!🌾
function objIs(type, obj) {
var clas = Object.prototype.toString.call(obj).slice(8, -1);
return obj !== undefined && obj !== null && clas === type;
}
objIs('String', 'test'); // true
objIs('String', new String('test')); // true
<a href="javascript:history.back(1)">Previous Page</a>
function getUrlParam(name) {
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
return (results && results[1]) || undefined;
}
function report() {
document.getElementsByTagName('output')[0].innerHTML = 'screen.width:'+screen.width+'<br>screen.height:'+screen.height+'<br>window.innerWidth:'+window.innerWidth+'<br>window.innerHeight:'+window.innerHeight+'<br>window.outerWidth:'+window.outerWidth+'<br>window.outerHeight:'+window.outerHeight+'<br>document.documentElement.<br clientHeight:'+document.documentElement.clientHeight+'<br>window.devicePixelRatio:'+window.devicePixelRatio;
}
window.addEventListener('load', report, false);
window.addEventListener('resize', report, false);
window.addEventListener('orientationchange', report, false);
window.addEventListener('deviceorientation', report, false);
window.addEventListener('MozOrientation', report, false);
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
}
};
// Examples
if( isMobile.any() ) alert('Mobile');
if( isMobile.iOS() ) alert('iOS Device');
var system = navigator.appVersion;
if (navigator.appVersion.indexOf("Mac") != -1 ) OS = "Mac";
else if (navigator.appVersion.indexOf("PowerPC") != -1 ) OS = "Mac";
else if (navigator.appVersion.indexOf("Win") != -1 ) OS = "Win";
else if (navigator.appVersion.indexOf("SunOS") != -1 ) OS = "Solaris";
else OS = "Linux";
//Determine Browser Version
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if (OS == "Mac" && bName=="Netscape") {
// your code here
}
else if (OS =="Mac" && bName=="Microsoft Internet Explorer") {
// your code here
}
else if (OS =="Win" || OS == "Linux" && bName == "Netscape") {
// your code here
}
else if (OS =="Solaris" && bName=="Netscape") {
// your code here
}
else if (OS =="Win" || OS == "Linux" && bName=="Microsoft Internet Explorer") {
// your code here
}function setCookie(name, value) {
if(name != '')
document.cookie = name + '=' + value;
}
function getCookie(name) {
if(name == '')
return('');
name_index = document.cookie.indexOf(name + '=');
if(name_index == -1)
return('');
cookie_value = document.cookie.substr(name_index + name.length + 1, document.cookie.length);
//All cookie name-value pairs end with a semi-colon, except the last one.
end_of_cookie = cookie_value.indexOf(';');
if(end_of_cookie != -1)
cookie_value = cookie_value.substr(0, end_of_cookie);
//Restores all the blank spaces.
space = cookie_value.indexOf('+');
while(space != -1) {
cookie_value = cookie_value.substr(0, space) + ' ' +
cookie_value.substr(space + 1, cookie_value.length);
space = cookie_value.indexOf('+');
}
return(cookie_value);
}// Internet Explorer
var ie = document.all != null; //ie4 and above
var ie5 = document.getElementById && document.all;
var ie6 = document.getElementById && document.all&&(navigator.appVersion.indexOf("MSIE>=0);
// Netscape
var ns4 = document.layers != null;
var ns6 = document.getElementById && !document.all;
var ns = ns4 || ns6;
// Firefox
var ff = !document.layers && !document.all;
// Opera
var op = navigator.userAgent.indexOf("opera")>0;
var op7 = op && operaVersion() <= 7;
var op8 = op && operaVersion() >= 8;
// Detects the Opera version
function operaVersion() {
agent = navigator.userAgent;
idx = agent.indexOf("opera");
if (idx>-1) {
return parseInt(agent.subString(idx+6,idx+7));
}
}
<select id="menulist">
<option value="1">test1</option>
<option value="2" selected="selected">test2</option>
<option value="3">test3</option>
</select>
<script>
var e = document.getElementById("menulist");
var optvalue = e.options[e.selectedIndex].value; // the option value attribute
var opttext = e.options[e.selectedIndex].text; // internal text inside option element
</script>