开发者

How to tell Django what's the active window

Out of an "old" tab, i'm opening a new tab in my django-powered web-app.

Now, when submitting something in the new tab, it will still load in the old tab, however i want django to do all the stuff in the new tab/window (unfortunately,开发者_如何学运维 this also applies to popup-windows (popupwindow = new tab).

How can i tell Django in which window it should "do stuff"? already tried things with JS (onclick="self.focus();") and things like "target="_self" "or other things, but i think it's a django problem.


This is not a django issue; which browser are you using ?

html form have a target attribute that is used as a 'reference' to another window. if the window doesnt exists, its opened.

Except for _top (top frame), _parent (parent frame) and _self (current frame)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜