Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make page invisible

Status
Not open for further replies.

madlarry

Programmer
Dec 6, 2000
117
GB
Hi,

I have an ASP page that searches for customers details and returns the data in a list that the user can select which in turn populates the data into an HTML page that the ASP page is called from (this works fine).

If there is no data I have an alert that is called within the window_onload function to say that 'No Customers Found'.

The problem is that when the alert is displayed the page is also displayed modally behind the alert.

Is there any way to make the page 'invisible' while the alert is displayed?

Thanks,
 
Thanks for the suggestion, but this still leaves the page being displayed, and stops the rest of the execution of the window_onload function (which is where the window.close gets called from).
 
then move the alert out of the window onload event, just place the window.close() script call inline:

<html>
<head>
<title></title>
<script>
alert("Closing Now");
window.close();
</script>
</head>
<body>
</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top