Results 1 to 4 of 4

Thread: How to use Iframe tag in javascript

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    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;

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    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>

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,515,130.08795 seconds with 17 queries