This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
My problem is how should i corelate html page and this gereric function. As soon as element calls my function i am using start variable to note start time.start = new Date() now the component is in the process of loading in the page.once it is over i should note the endtime.
i know it doent take any time for normal elements to load in page.but in my case suppose elements do take time. For example suppose i am using alertbox. now when alertbox will appear i will note startime,when i click ok on alert i should note end time.so the time difference is time required for element to load.
how should I write this generic function which will note starttime ,then wait till element gets loaded then note end time and write that? or need i do any changes in html page while calling this js function?
can u please give example or code?i was trying to use frame and div tag.