user interface - Loading jQuery Dialog changes Browser viewport Focus -
I'm loading a jQuery UI window down some scrolls from the top of the page. When this browser opens, it resets its position at the top of the page.
If this dialog helps before loading it then I want to put some HTML in the page (html for dialog).
Does anyone know how to stop it?
Edit The answer to this question was guessed what was my problem and resolved it.
If you would like to link it to & lt; A href = '#' & gt;
tag, make sure to stop the event. Otherwise it will return to you at the top of the page.
$ ("a.myWindow"). Click (function (event) {event.preventDefault (); / * Show dialog * /});
Comments
Post a Comment