Questions tagged [javascript-events]

DO NOT USE THIS TAG! JavaScript has no event constructs. Use [dom-events], [jquery-events], [backbone-events]; or library/environment + [events] e.g. [node.js]+[events]

For more information, see When should [javascript-events] be used, and when should [events] be used?

(Tag info has been moved to .)

4 questions
32
votes
0 answers

element.onload vs element.addEventListener("load",callbak,false)

Can someone please explain what the difference is between the following two ways to specifying onload callback functions in javascript? element.onload = callback AND element.addEventListener("load",callbak,false)
VinnyD
  • 3,500
  • 9
  • 34
  • 48
0
votes
0 answers

How to hide address bar on showmodaldialog

Possible Duplicate: How can I hide the address bar in a modal dialog? hello guys, how to hide address bar (location bar ) on showmodaldialog.. code: var dialogFeatures = 'center:yes; dialogWidth:600px;…
pavan
  • 73
  • 2
  • 3
  • 10
0
votes
1 answer

Update web page whilst processing data

Im not really sure what to search for on this subject. I have a Pylons back end which loops over a list of email addresses in a database and then displays them on a web page. What I would like to do is have a loading section (as there are some other…
RonnyKnoxville
  • 6,166
  • 10
  • 46
  • 75
-4
votes
0 answers

JavaScript Event (click)

When I use this simple function the result excuts for less then a second and reload the page I tried many different ways to avoid and execute it generally but it doesn't work. submit.addEventListener('click', switchpage) function switchpage() { …