the scenario is window is passed as a parameter to a function , and I also need to use the document of the window for searching element in the function. No idea about how to get the document object through $(winObjParamter).winObjParamter is the parameter passed to the function.
Share
Just use
winObjParamter.documentto get thedocumentobject of the window.Ref: https://developer.mozilla.org/en/DOM/window