Protection labs. The teacher asks you to show how to move the browser alert('sometext'); Can I interact with him and how? Lieb is not. Native js.
|
2 answers
alert shows a blocking window, no access to its settings. Moreover, at the time of its display, the execution of other scripts is blocked. Thus, while it is open, nothing can be done.
As @ Alexey Shimansky suggests:
You can override the alert function, for example:
window.alert = function(){ ... } And inside the function just show the absolutely positioned element.
- thanks, and I will tell him: D - Anque
- @Anhk, supplemented the answer a bit - Grundy
|
Mouse. Point at the heading, click and click.
|
window.alertwith my blackjack and ....? - Alexey Shimansky