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. Browser independent javascript

Browser independent javascript

Scheduled Pinned Locked Moved Web Development
javascripthelptutorial
2 Posts 2 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.
  • E Offline
    E Offline
    Exelioindia
    wrote on last edited by
    #1

    Hi all, I need a suggestion to solve the below problem. intXOffset = window.event.offsetX; intYOffset = window.event.offsetY; the above code works good in IE but not in any other browsers :( how to write a browser independent javascript for this. Also there is a problem with this code. The function containing this code is called onLoad of the body and onclick of a image. Also any one suggest me a URL from where i can learn browser independent javascript. Thanks in advance :)

    Know is Drop, Unknown is Ocean

    L 1 Reply Last reply
    0
    • E Exelioindia

      Hi all, I need a suggestion to solve the below problem. intXOffset = window.event.offsetX; intYOffset = window.event.offsetY; the above code works good in IE but not in any other browsers :( how to write a browser independent javascript for this. Also there is a problem with this code. The function containing this code is called onLoad of the body and onclick of a image. Also any one suggest me a URL from where i can learn browser independent javascript. Thanks in advance :)

      Know is Drop, Unknown is Ocean

      L Offline
      L Offline
      Laxmikant Lad
      wrote on last edited by
      #2

      http://www.unix.com.ua/orelly/web/jscript/ch18\_01.html

      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