document.url

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pow67

    document.url

    Javascript beginner would like to create one Web page from the contents
    of three other pages.

    This does not work:

    javascript:docu ment.write.url. ("http://www.myWEB.com/Events/A1_Cal_ALD_Even ts_1.html",
    "http://www.myWEB.com/Events/A1_Cal_ALD_Even ts_2.html",
    "http://www.myWEB.com/Events/A1_Cal_ALD_Even ts_3.html")

    Suggestions appreciated.

    CW
  • lallous

    #2
    Re: document.url

    Hello

    It is possible but don't ask me how to do it:

    1.use methods like hidden data frame, frame.load(url) .innerHTML, etc...just
    to get the the content of a page into a javascript string
    2.parse the string and remove inappropriate tags such as: <html> and <body>
    tags, remember we only need one of these tags
    3.form the final string that is page1+page2+pag e3 then document.write( pageT)
    or simply put its content into innerHTML of the element you want to display
    to.

    --
    Elias

    "pow67" <pow67@optonlin e.net> wrote in message
    news:3F760564.4 6509541@optonli ne.net...[color=blue]
    > Javascript beginner would like to create one Web page from the contents
    > of three other pages.
    >
    > This does not work:
    >
    >[/color]
    javascript:docu ment.write.url. ("http://www.myWEB.com/Events/A1_Cal_ALD_Even t
    s_1.html",[color=blue]
    > "http://www.myWEB.com/Events/A1_Cal_ALD_Even ts_2.html",
    > "http://www.myWEB.com/Events/A1_Cal_ALD_Even ts_3.html")
    >
    > Suggestions appreciated.
    >
    > CW[/color]


    Comment

    Working...