loading html pages dynamically through javascript

Discussion in 'Javascript' started by isha.mackker@gmail.com, Jun 23, 2006.

  1. Guest

    How can html files be loaded dynamically through javascript? Can and
    how a link , which may be in a third party web page, or a bookmark
    button can be programmed in javascript to load another web page?
    any reply will be highly appritiated
    Thanks and Regards,
    Isha.
     
    , Jun 23, 2006
    #1
    1. Advertising

  2. RobG Guest

    wrote:
    > How can html files be loaded dynamically through javascript? Can and


    <input type="button" value="Go to Google..."
    onclick="location.href='http://www.google.com';">

    but isn't that what A elements are for? You can use the target
    attribute to load the document in a frame or iframe - no script required.


    > how a link , which may be in a third party web page, or a bookmark
    > button can be programmed in javascript to load another web page?


    Scripts can't, with default security settings, tamper with pages from
    another domain.


    > any reply will be highly appritiated


    *Any* reply?


    --
    Rob
     
    RobG, Jun 23, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Antonio
    Replies:
    0
    Views:
    471
    Antonio
    Sep 19, 2005
  2. Replies:
    3
    Views:
    448
    Andrew Thompson
    Feb 12, 2007
  3. Replies:
    4
    Views:
    345
  4. Replies:
    1
    Views:
    81
    David Dorward
    Feb 11, 2007
  5. Replies:
    4
    Views:
    207
Loading...

Share This Page