/    Sign up×
Community /Pin to ProfileBookmark

Getting sourcecode in javascript!

Hey there,

i was wondering if there was a way i could get the source of a webpage and store it into a variable in javascript.

I mean something like fopen(); in php, but for javascript. ?

Thanks for your help in advanced!

  • ISuckAtThis
  • to post a comment
    JavaScript

    3 Comments(s)

    Copy linkTweet thisAlerts:
    @AdamGundryJul 31.2004 — Perhaps this will be useful:

    http://developer.irt.org/script/1655.htm

    Adam
    Copy linkTweet thisAlerts:
    @sciguyryanAug 01.2004 — Nice code Adam.
    Copy linkTweet thisAlerts:
    @AdamGundryAug 01.2004 — I can't really claim credit - all I posted was a link. I didn't right the article, alas. ?

    Adam
    ×

    Success!

    Help @isuckatthis spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...