Friday, April 29, 2011

Javascript and iFrame

Here's how you get the URL parameters of your iFrame document once the contents of the iFrame have been updated. The MooTools "$" function is used here. If you don't want to use it, use getElementById:

var URL = $('Frame_ID').contentDocument.URL;

No comments:

Post a Comment