[英]ASP.NET Javascript and postback
I have a page located in an iframe
of another page. 我在另一个页面的iframe
有一个页面。 It calls a js
function like this: 它调用这样的js
函数:
function F(a)
{
parent.document.getElementById('A').value = a;
parent.document.getElementById('B').click();
}
It results in page reloading. 这将导致页面重新加载。 How can I prevent it? 我该如何预防? Previously I've used return false;
以前我用return false;
and it worked. 而且有效。 But not in this case. 但在这种情况下不是。
F("some value"); F(“某些值”); return false; 返回false; after calling the function not inside. 调用该函数后不在里面。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.