[Project_owners] before onload

Gomita gomita.mail at gmail.com
Tue Feb 7 23:08:33 EST 2006

Write scripts in xul directly.

<script type="application/x-javascript"><![CDATA[
	alert('before onload');

raj p r wrote:
> hi,
> 1) I want to do some processing before window.load is called. how do i
> achieve this?
> 2) the project im working on is my extension "adaptive homepage" . I have
> recieved many requests to make it work with bookmarks but somehow it doesnt.
> i have tried all the possible events(blur, input,domattrmodified,change,
> textentered,select).
> the way the extension works is this way for people to get a better idea of
> what is happening:
> i have added an addeventlistener to the urlbar for the onchange event.
> so each time the user enters a text either from the drop down list of the
> urlbar or by entering the url himself it gets registered in the preferences
> which i have added for this.
> each time brower loads up the values in this preference is read and a simple
> calculation calculates the most appropriate page for this time. and this
> value is loaded into the browser.homepage preference. but i think before
> this value is changed by my calculations the value which was there
> previously is loaded into the urlbar.
> so i need to do some changes so that this calculation happens before the
> value is read from the preference itself (which im assuming to be before
> window.load for which im attaching this another prestartup calculation so
> far)!  what can be the possible solutions for this problem!
> im hoping for the developer community to help me out in this matter with
> your suggestions .
> thank you.
> --
> Regards,
> Ganaraj P R
> ------------------------------------------------------------------------
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list