in javascript dom, how do you get the target of the current window? -


assuming link

<a href='www.domain.com/mypage' target='target1' >open in new tab</a> 

opens mypage

how, mypage, know if current window 'target1'

have looked under window , window.location, nothing there seems fit

the window.name property you're looking for.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -