var d = ($$('iframe')[0]).contentDocument; d.getElementsByName('ID')[0]
Monday, May 28, 2012
javascript console - To get value of an element from an iframe
Saturday, May 26, 2012
Title: Become a Javascript Console Power-User
To be able to access, from Console, elements in an iframe:
1. get id of iframe -
document.getElementsByTagName('iframe')
2. use the cd() command -
cd(document.getElementById('id_of_iframe').contentWindow)
3. now we can access elements in the iframe as usual using document.getElementById() etc
Wednesday, May 23, 2012
Wednesday, May 16, 2012
DateTime.Now.CompareTo() method
var dt1 = DateTime.Now;
while (DateTime.Now.CompareTo(dt1.AddSeconds(10)) <= 0)
{
}
Tuesday, May 15, 2012
Store Form Values bookmarklet
Drag & Drop the following bookmarklets to 'store' and 'load' a form's values.
Form Values - Store
Form Values - Load
Form Values - Store
Form Values - Load
Monday, May 7, 2012
Subscribe to:
Posts (Atom)