GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WEBDEV 2024
→
How te prevent a website from closing if data are unsaved
How te prevent a website from closing if data are unsaved
Iniciado por Stefan Buteneers, out., 11 2013 10:34 AM - 1 resposta
Conecte-se…
Stefan Buteneers
#1
Publicado em outubro, 11 2013 - 10:34 AM
Hi all,
The title says it all: I want to generate a warning when a user tries to close a website using the X of the browser tab or the X of the browser application when he/she still has unsaved changes within the website environment.
I want to ask the user wether to quit saving changes or quit alltogether without saving changes.
I would prefer to show him/her a customised page that pops up when the website detects unsaved changes. The popup should be able tot stop the initiated process of terminating the web page.
Any ideas ?
Stefan
Denunciar
0
0
ALLEN
#2
Membro registado
8 mensagems
Publicado em dezembro, 16 2013 - 7:53 PM
To my knowledge you would have to user javascript:
http://stackoverflow.com/questions/2923139/prompt-user-before-browser-close
--
Zach Allen
BaseBridge Ltd.
Software Developer
Denunciar
0
0
→ Voltar para WEBDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto