I have an anchor tag that works perfectly fine in IE. Here is an example (less some additional parameters I've omitted for clarity)
<a href="javascript:void(0)" onclick="parent.navigate('wizard.aspx?Modal=Yes')">Add</a>
Unfortunately it would appear that parent.navigate does not work in other browsers such as chrome. The error I receive is: Uncaught TypeError: Object [object global] has no method 'navigate'
I've searched online for an alternative cross-browser solution but haven't been able to successfully make anything else work. I've tried window.location, window.location.href but nothing seems to be working.
Any ideas? Thanks!
UPDATE: This anchor tag resides in an iframe (which is also part of wizard.aspx). What the link ultimately does is updates something within the frame. But regardless, all I'm looking for is an alternative to parent.navigate so it will work in other browsers besides IE. And I've already researched window.location and window.location.href found in other stack overflow articles but they obviously don't work hence why I posted a question.
FINAL UPDATE: Working code.
<a href="javascript:void(0)" onclick="parent.location.href='wizard.aspx?Modal=Yes')">Add</a>