ptikobj
ptikobj

Reputation: 2710

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.

Upvotes: 0

Views: 333

Answers (1)

jujule
jujule

Reputation: 11541

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)

Upvotes: 1

Related Questions