I have a link on web page
<li data="url: 'www.mypage.com?index.php?CId=2&MId=14&MTId=1'">mylink
In my js script I have
$(document).ready(function() {
$("#tree").dynatree({
persist: true,
onPostInit: function(isReloading, isError) {
this.reactivate();
},
onActivate: function(dtnode) {
var isInitializing = dtnode.tree.isInitializing();
var isReloading = dtnode.tree.isReloading();
var isUserEvent = dtnode.tree.isUserEvent();
if( dtnode.data.url )
window.open(dtnode.data.url);
}
});
});
What should I do instead of window.open
so the url reloads in the same window, not opening a new one?
There's no name in the web page where I could use iFrame way.