I want to redirect an iframe (is called "main") in my page by useing a linkbutton in asp.net
When I click on the linkbutton the fuction test is called
I also tryedCode:private void test(object sender, System.EventArgs e) { Response.Write("<script>window.parent.main.location = 'http://google.be'</script>"); }
Response.Write("<script>_parent.location.replace('http://google.be')</script>");
Response.Write("<script>window.frames[“main”].location.replace('http://google.be')</script>");
Response.Write("<script>window.frames[“main”].location.href='http://google.be'</script>");
But non of the scripts seem to work![]()




Reply With Quote