Hmm, but then I would need to have a window object to begin with. I think I need to back up. Suppose I want to create an extension that stops users from visiting a malicious website; I add an event listener to the chrome.tabs.onUpdated event. When I see a URL that is suspicious, I stop the page from loading and ask the user if he really wants to visit the site. How could I implement that?
On Jan 21, 4:29 pm, Mohamed Mansour <[email protected]> wrote: > You can use JavaScript's window.stop to stop loading the page > programmatically. > > https://developer.mozilla.org/en/DOM/window.stop > > -Mohamed Mansour > > On Thu, Jan 21, 2010 at 7:23 PM, Min Huang <[email protected]> wrote: > > I know can I press ESC to stop a page from loading manually, but is > > there no way to do it otherwise? I feel like an idiot for asking but > > I don't see anything in the chrome.* APIs. > > > -Min > > > -- > > You received this message because you are subscribed to the Google Groups > > "Chromium-extensions" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<chromium-extensions%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/chromium-extensions?hl=en. -- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
