Answer by  
                                                                                          dontwalkhand (27)
                                                            
                          
                          
                                                          You would just use a script such as the one below:
 
 If the document is on the same domain:
 
 You can use javascript coding.
 If the document is not on the same domain, it looks as though you would not be able to do it, because of security settings.