Problem:
How to call the parent window of the iframe parent window? Upload images using AJAX
Copy to ClipboardReference content: [www.bkjia.com] <iframe src = "ajax_upimage.html" name = "iframeUpload1" width = "350" height = "80" frameborder = 0 SCROLLING = "no" style = "border: 1px red solid "> </iframe>
Ajax_upimage.html page
<Form action = "ajax_ImageUp.php" enctype = "multipart/form-data" METHOD = "POST" id = "upform" target = "iframeUpload">
<Iframe name = "iframeUpload" src = "" width = "350" height = "35" frameborder = 0 SCROLLING = "no" style = "display: none "> </iframe>
<Div>
<Input type = "file" NAME = "sn_up_img" id = "sn_up_img" onchange = "upsave ()">
</Div>
</Form>
Answer:
Use parent on the current page to get the object on the upper-level page of the Framework. Then use parent to get the upper-level object on the framework.
The combination is parent. parent.