Hi,

I'm not so good with Javascript so need some help with opening a nyroModal window on pageload

So starting simple i checked:
Code:
$(window).load(function() {

alert("hello");

});
This works on my page, so i try
Code:
$(window).load(function() {
    $.nyroModalManual({ url: '#blah'});

});
Which does not


If i set a link with class="nyroModal" the modal window opens when i click the link. If i create a function
Code:
function lemons(){
$.nyroModalManual({
    url: '#blah'
});
};
and call that from an onClick="lemons();" the modal window opens.

Why can't i get it to work on page load? am i missing something dead easy? any help will be most appreciated

thanks