Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. How to call Fetch url using HTML ?

How to call Fetch url using HTML ?

Scheduled Pinned Locked Moved JavaScript
htmltutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I want to create html seit and call a URL ('.....') and write die result in Browser console ? how could i do it because i can't get it well i will be glad for an explanation

    Richard DeemingR W 2 Replies Last reply
    0
    • L Lost User

      I want to create html seit and call a URL ('.....') and write die result in Browser console ? how could i do it because i can't get it well i will be glad for an explanation

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Using Fetch - Web APIs | MDN[^] Fetch API - Web APIs | MDN[^] If you want to make it work in Internet Explorer, you'll need a polyfill: GitHub - github/fetch: A window.fetch JavaScript polyfill.[^] Alternatively, you could use AJAX, which supports older browsers: Getting Started - Developer guides | MDN[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • L Lost User

        I want to create html seit and call a URL ('.....') and write die result in Browser console ? how could i do it because i can't get it well i will be glad for an explanation

        W Offline
        W Offline
        Wishe1991
        wrote on last edited by
        #3

        You can use AJAX because it sometimes supports other browsers.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups