Forum Moderators: open
here is the part of the code ive been trying...I want to open the following "demi.html" and "semi.html" inside a frame...but to do that...I need to specify the id of the frame...but i have no idea how, given that the code to open the link is window.location.href..
document.getElementById('iframe_id').src='http://www.example.com/'
There's also a method for navigating through the DOM to identify an iframe with a name attribute. In this case you can use the same location.href approach:
self.frames['iframe_name'].location.href='http://www.example.com/'
Either one should do the trick, but cross browser testing is always recommended. :)