Link to home
Start Free TrialLog in
Avatar of Filips Houbrechts
Filips HoubrechtsFlag for Belgium

asked on

Prevent or hide javascript error

Hi,

How can I prevent error messages showing on the statusbar of the browser?

I have an object (newwin = window.open(...)) that is only created by clicking a button but there is always a check to see is newwin is already open.

So when I enter the page, newwin is not existing and javascript check shows me the error in the statusbar saying: 'newwin' is undefined.

How can I hide or even prevent that error?

Thanks in advance.
Filips
ASKER CERTIFIED SOLUTION
Avatar of ahosang
ahosang
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Filips Houbrechts

ASKER

Short but good.

Thanks a lot ahosang.
Filips
glad to help :-)