You can only check which domain sent the message. If you need more identification you can always layer it into your messaging system.
Send messages like:
message = {
"source": "menu",
"message": "click on entry"
};
Each frame then has their own source. You will need to serialize the message, JSON works nicely.