Ah! maybe this link can solve your problem
this talks on DOM syntax to set or return target attribute of links in a web page (_blank,_self,_top,_parent or filename of a named frame).must access to the document object.
http://www.w3schools.com/jsref/prop_base_target.asp