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)
精彩评论