html - Javascript calling function - onclick works whereas onload doesn't -


I am trying to display a proposal on page loading.

The offer works and displays onClick method (which means that there is nothing wrong with the 'getOffers.php' script:

  
div contain = "onclick =" getRequest ('& lt;? = $ root? & gt; getOffers.php') "& gt; div id = "Offer" class = "home-box"> gt;

offer

& gt; > Whenever I try:

  
div class = "container" onload = "getRequest ('& lt;? = $ Root? & Gt; getOffers.php')" & Gt;

It does not seem to work , Someone will tell me what I am doing.



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -