PDA

View Full Version : onclick problem



Brad_Armitage
Nov 18th, 2005, 04:34 PM
How do you set a form button to open a page in the current window from a frame in that same window using onclick or some other JS method? I want it to open in the "parent" state ... :D

requestcode
Nov 18th, 2005, 05:30 PM
I believe parent.location.href="..." or top.location.href=".." will work.

Brad_Armitage
Nov 18th, 2005, 05:35 PM
Nope that opened a new window, and I want it to open in the same window, just in the whole window, not in that frame ... :rolleyes:

requestcode
Nov 18th, 2005, 06:39 PM
I corrected the code, try it again.

Brad_Armitage
Nov 18th, 2005, 08:22 PM
thanks that did the trick!