How do I detect either users open my Facebook app in iframe or direct url? Lets say my Facebook app url is http://fb.domain.com/ and the app url is http://apps.facebook.com/demoapp/ Now I want a user cannot open the application url directly …
Category Archives: JavaScript
HTML5 – Keyboard Events
ATRIBUTE STATUS VALUE DESCRIPTION onkeydown No Change script Script to be run when a key is pressed onkeypress NO Change script Script to be run when a key is pressed and released onkeyup No Change script Script to be run …
HTML5 – Form Events
ATRIBUTE STATUS VALUE DESCRIPTION onblur No Change script Script to be run when an element loses focus onchange NO Change script Script to be run when an element changes oncontextmenu NEW script Script to be run when a context menu …
HTML5 – Mouse Events
ATRIBUTE STATUS VALUE DESCRIPTION onclick No Change script Script to be run on a mouse click ondblclick No Change script Script to be run on a mouse double-click ondrag NEW script Script to be run when an element is dragged …
HTML5 – Window Event Attributes
ATRIBUTE STATUS VALUE DESCRIPTION onafterprint NEW script Script to be run after the document is printed onbeforeprint NEW script Script to be run before the document is printed onbeforeonload NEW script Script to be run before the document loads onblur …
HTML5 – Media Events
ATRIBUTE STATUS VALUE DESCRIPTION onabort No Change script Script to be run on an abort event oncanplay NEW script Script to be run when media can start play, but might has to stop for buffering oncanplaythrough NEW script Script to …
Create rounded corners with CSS
Rounded corners for Safari/Chrome, Opera and IE9: #example { border-radius: 15px; } Rounded corners to be supported by Firefox as well: #example { -moz-border-radius: 15px; border-radius: 15px; } The border-radius shorthand property can be used to define all four corners …
Jquery, Prototype and third part javascript frame work
What’s happening now is close to madness.. sometimes. Anyway, any web service provider / developer work around this issue and the consumers assume the risk he may pay double or triple. Facts: 2009 September – we put on the market …
ID and Name – INPUT
INPUT (in form) 1) To get value of a input elements based on ID : var obj = document.getElementById(‘IDname’); var val=obj.value; 1) To get value of a input elements based on Name : var obj=document.getElementsByName(“name”); var val=obj[0].value;
CSS – Javascript – properties / commands
CSS Property JavaScript Command background background background-attachment backgroundAttachment background-color backgroundColor background-image backgroundImage background-position backgroundPosition background-repeat backgroundRepeat border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-style borderBottomStyle border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color borderLeftColor border-left-style borderLeftStyle border-left-width borderLeftWidth border-right borderRight border-right-color borderRightColor …




(2 votes, average: 3.50 out of 5)