|
|
Q210 I keep receiving function undefined in the following script, why?
irt.org | Knowledge Base | JavaScript | Misc | Q210 [ previous next ] Q210 I keep receiving function undefined in the following script, why?
Because of the BASE tag in the head of the document, the link is targeting the URL javascript:GetLoc() into the _top window. If the _top window does not contain a JavaScript function called myfunction() then an error message will appear. Visualise the URL as: javascript:_top.myfunction(), and you'll see why it fails. |
-- div -->
|