| Author |
closing window automatically using JavaScript
|
avinash narasingam
Greenhorn
Joined: May 08, 2012
Posts: 6
|
|
does anyone know how to close the window automatically without having a prompt or alert box .
if we try window.close() a alert box is displayed asking yes or no to close the window
i dont want the confirmation message.
but window should be closed
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
|
If you didn't open the window yourself, then it's not your window to do with as you please and you can't close it without alerting the user. Why would you want to be so unfriendly?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
avinash narasingam
Greenhorn
Joined: May 08, 2012
Posts: 6
|
|
First of all sorry for posting in the wrong forum
Secondly i am the user,when i click on a button(export to pdf) a new window (empty)is opening and also a pdf format page..i just want the pdf page,,
the empty window page should be closed automatically without asking for an alert
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15362
|
|
Open the pdf into a hidden iframe.
Eric
|
 |
 |
|
|
subject: closing window automatically using JavaScript
|
|
|