Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 30-06-2009
Member
 
Join Date: May 2009
Posts: 57
How to use Iframe tag in javascript

Hi,
I want some simple steps to apply Iframe tag in a javascript. I had never used it that is why I am bit confused here. If possible you can place some example code also for a reference purpose. Other than this what Iframe tag offers more. What more can I do with it. I need to open multiple web pages in a same document. Thanks.
Reply With Quote
  #2  
Old 30-06-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: How to use Iframe tag in javascript

Iframes also called as inline frames. It helps you to load separate web pages files in a single existing document. The tag has a similarity to the frame of a element. It can be easily referenced in a frame array. For example you want to load a document in a frames then you have to specify the name of the iframe element through javascript. The tag is as follows - window.frames[iframeName].location = url;
Reply With Quote
  #3  
Old 30-06-2009
Member
 
Join Date: Oct 2005
Posts: 2,389
Re: How to use Iframe tag in javascript

Iframe is very easy to use and has simple tag which is most common. Just add the Iframe tag and mention the url location in the java script. The frames allows to open multiple files in a single page. It is an very handy and easy to use tool. You can get many examples on the internet related to complete code and a sample javascript.
Reply With Quote
  #4  
Old 30-06-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: How to use Iframe tag in javascript

The web page is divided into multiple blocks. These blocks are maintain by Frames. Each Frame has his own web page. Here to define the work of Frame you will need to define Frameset. Then comes the Iframe. It is a part of a web page which is placed withing a page. The sample of Iframes is listed below. Have a look at it and then create you own.
HTML Code:
<iframe  
id="Iframe1"  frameborder="0"  vspace="0"  hspace="0"  
marginwidth="0"  marginheight="0" width="100"  
scrolling="yes"  height="100"  src="full address of website">
</iframe>
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to use Iframe tag in javascript"
Thread Thread Starter Forum Replies Last Post
Link outside of an iframe Allison Software Development 5 07-01-2011 06:15 PM
What is Mal/Iframe-E? Hecter Networking & Security 4 04-02-2010 05:46 AM
Javascript Keyboard Events In Iframe Henryosa Software Development 5 25-01-2010 02:04 PM
How to design javascript parent iframe Nurhan Software Development 3 13-08-2009 03:26 PM
How to use iFrame? Jason Bourne Software Development 4 18-05-2009 06:13 PM


All times are GMT +5.5. The time now is 01:54 AM.