Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting javascript-initiated page loads



On Oct 11, 2005, at 8:09 PM, Sebastien Boisvert wrote:

Is there a way to determine if a page/resource load was initiated through javascript as opposed to a user-initiated action (link click, form submit, etc) as in:

top.location='some URL'

If you're implementing a policy delegate callback, the actionInformation dictionary includes a navigation type, under the WebActionNavigationTypeKey. The navigation types distinguish clicks, form submissions, back/forward, and "other", which includes JavaScript.


Depending on exactly what you're trying to do, this might be sufficient for your needs.

    -- Darin

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Detecting javascript-initiated page loads (From: Sebastien Boisvert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.