These few seconds of planning could save your life. If it is hot, don't open it, flames and smoke will rush into the room. If you cannot escape, stay be an open window and signal for help. If you can, call the fire department and tell them where you are trapped. Crawl through smoke to avoid breathing deadly vapors.
Fresh air stays a few inches above the floor.
Go directly to a predetermined meeting place. Always get out first, then call the fire department. Do not go back in for any reason, personal belongings can be replaced, your life can not. When fire strikes, time is of the utmost importance. Quick reporting could help to save a life.