Hello,
although this is barelyDjango related, here are some notes.
From MDN[1]: Note: as document.write writes to the document stream, calling document.write on a closed (loaded) document automatically callsdocument.open which will clear the document.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Document/write
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/566E0BC0.8020100%40verizon.net.
For more options, visit https://groups.google.com/d/optout.
Sorry, I have pressed Send too soon…
As you see, using document.write is a very bad idea. However, freezing is not mentioned in that document. What does freezing mean in this case? Are you sure it's this code that gets executed and freezes?
Also, what exactly do you want to achieve?
Best,
Gergely
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACczBUJERe5jZR37%3DjBF3N7QMRiwR6kWNRWO%3DzxG273EzCLsDQ%40mail.gmail.com.