How To Remove Error Message On Status Bar

  • Thread starter Thread starter jleung
  • Start date Start date
  • Tags Tags
    Error
Click For Summary

Discussion Overview

The discussion revolves around the error message "Done, but with message on page" that appears in Internet Explorer, specifically exploring ways to suppress or handle this message through JavaScript or HTML code. The focus includes troubleshooting JavaScript errors and potential methods to modify the status message displayed in the browser.

Discussion Character

  • Technical explanation, Debate/contested

Main Points Raised

  • One participant notes the presence of the error message is due to a JavaScript error and suggests that fixing the error will remove the message.
  • Another participant inquires if there is a JavaScript code that can hide the error message and simply display "done".
  • A different participant proposes using the `window.status` property to set a custom status message, but clarifies that this will not eliminate the underlying error.
  • Additionally, a suggestion is made to use a try/catch statement to handle the JavaScript error, although it does not directly address the suppression of the message.

Areas of Agreement / Disagreement

Participants express differing views on whether it is possible to hide the error message without resolving the underlying JavaScript issue. There is no consensus on a definitive solution.

Contextual Notes

The discussion does not resolve the specific limitations of the proposed solutions, such as the effectiveness of using `window.status` or the implications of using try/catch for error handling.

jleung
Messages
3
Reaction score
0
On the Internet Explorer, it shows this message:

Done, but with message on page.

Is there a javascript or HTML code to remove that message so that it appears to be normal?
 
Technology news on Phys.org
That's caused by a javascript error. The message will go away once you fix it or handle the error.
If you post the source i'll be able to help you.
 
but isn't there a javascript code that can hide the message? and make the status message to say: done?
 
You can use window.status = '...' to set the status message. But that won't make the error go away as far as i know.
You can put a try/catch statement around your javascript to handle the error. For example:
Code:
try{
//your code here
}catch(x){}
 

Similar threads

Replies
7
Views
3K
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
Replies
1
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
4
Views
3K