Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
47
rated 0 times [  53] [ 6]  / answers: 1 / hits: 21452  / 12 Years ago, sat, october 13, 2012, 12:00:00
document.location.href=http://verttgrettest.com/testpaper.aspx?VideoId=1


Javascript how to add target=_parent in document.location.href


More From » jquery

 Answers
19

You can't, the .href is literally just the URL you want to redirect to. You have to directly change the .href of the frame you want to target, not the href of the window/frame you're in e.g.



parent.document.location.href = 'http://...'

[#82569] Friday, October 12, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aleighabayleef

Total Points: 511
Total Questions: 99
Total Answers: 99

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
;