SE_Danny Posted November 20, 2010 Share Posted November 20, 2010 Hi guys!I have an object tag on my webpage which loads external webpages. How can I get the title of that page or the url ??I've looked all over the internet but found no answer. You are my last hope guys.Thanks !!! Link to comment Share on other sites More sharing options...
Ingolme Posted November 20, 2010 Share Posted November 20, 2010 You really can't. Putting a website in an object is a problem to begin with. It's preferrable to use iframes. And if you are using an iframe, you can only get information of the page it contains if that page is on the same domain as your current page. Link to comment Share on other sites More sharing options...
dsonesuk Posted November 20, 2010 Share Posted November 20, 2010 you will find that iframes will allow content from external domains in all browsers, whereas object won't in browsers such IE and Opera. Note also this will work on your own computers local server, but once transferred to your website server it will fail. Link to comment Share on other sites More sharing options...
SE_Danny Posted November 21, 2010 Author Share Posted November 21, 2010 The reason why I'm using <object> tags is that when the src/data is something like "fgdfg" it loads what is inside the object tag.Like : <object data="wrongurl"> The page could not be loaded </object>Which is not possible with iframes. Or is it ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.