how to stop loading page after loading starts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #1

    how to stop loading page after loading starts

    i want to stop loading page after loading starts ... using js

    how can i do it

    thanx in advance
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Use window.stop(), but I don't think it works in IE. See this link.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      If window.stop() doesn't work in IE, use
      Code:
      document.execCommand('Stop')
      BTW, that's IE-only, so use both.

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        thanx for ur reply ......

        Comment

        • chunk1978
          New Member
          • Jan 2007
          • 224

          #5
          Originally posted by acoder
          If window.stop() doesn't work in IE, use
          Code:
          document.execCommand('Stop')
          BTW, that's IE-only, so use both.
          i'm sad to report that neither of these commands seem to work in Safari...

          Comment

          Working...